Commit 7f666621 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 938161: sql_date_format() method for SQLite has an incorrect default format

r/a=glob
parent f5d28845
...@@ -213,7 +213,7 @@ sub sql_to_days { ...@@ -213,7 +213,7 @@ sub sql_to_days {
sub sql_date_format { sub sql_date_format {
my ($self, $date, $format) = @_; my ($self, $date, $format) = @_;
$format = "%Y.%m.%d %H:%M:%s" if !$format; $format = "%Y.%m.%d %H:%M:%S" if !$format;
$format =~ s/\%i/\%M/g; $format =~ s/\%i/\%M/g;
return "STRFTIME(" . $self->quote($format) . ", $date)"; return "STRFTIME(" . $self->quote($format) . ", $date)";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment