]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 938161: sql_date_format() method for SQLite has an incorrect default format
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 14 Nov 2013 16:58:43 +0000 (17:58 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 14 Nov 2013 16:58:43 +0000 (17:58 +0100)
r/a=glob

Bugzilla/DB/Sqlite.pm

index 8da73ae66ad797ea09eb0cdd931d52f03730b865..cffe3b65c7f823a0cdc1ec3d415993fa4147cd6c 100644 (file)
@@ -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)";
 }