Commit f52df06f 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 784352d8
......@@ -216,7 +216,7 @@ sub sql_to_days {
sub sql_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;
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