[bugzilla-gnome-org-upstream/4.4] Bug 1303702 - bug history table 'when' column shows 00:00 only using sqlite



commit 26a6446788ec456517666c83453df553b2f3320d
Author: Andrea Orsini <andrea orsini oracle com>
Date:   Mon Sep 19 11:14:14 2016 -0400

    Bug 1303702 - bug history table 'when' column shows 00:00 only using sqlite
    
    r/a=dylan

 Bugzilla/DB/Sqlite.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/Bugzilla/DB/Sqlite.pm b/Bugzilla/DB/Sqlite.pm
index 47cb0cd..3470ffc 100644
--- a/Bugzilla/DB/Sqlite.pm
+++ b/Bugzilla/DB/Sqlite.pm
@@ -215,6 +215,7 @@ sub sql_date_format {
     my ($self, $date, $format) = @_;
     $format = "%Y.%m.%d %H:%M:%S" if !$format;
     $format =~ s/\%i/\%M/g;
+    $format =~ s/\%s/\%S/g;
     return "STRFTIME(" . $self->quote($format) . ", $date)";
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]