summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Orsini <andrea.orsini@oracle.com>2016-09-19 11:14:14 -0400
committerDylan William Hardison <dylan@hardison.net>2016-09-19 11:15:25 -0400
commitfe2251f5ddef052e7d529fc5a8b7d42e3e086b98 (patch)
tree2fa694cbad5ad543b3bf93c1bef59576f3ae2292
parent- New CI docker image for testing (diff)
downloadbugzilla-fe2251f5ddef052e7d529fc5a8b7d42e3e086b98.tar.gz
bugzilla-fe2251f5ddef052e7d529fc5a8b7d42e3e086b98.tar.bz2
bugzilla-fe2251f5ddef052e7d529fc5a8b7d42e3e086b98.zip
Bug 1303702 - bug history table 'when' column shows 00:00 only using sqlite
r/a=dylan
-rw-r--r--Bugzilla/DB/Sqlite.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/DB/Sqlite.pm b/Bugzilla/DB/Sqlite.pm
index ddafc1696..a56ed31ad 100644
--- a/Bugzilla/DB/Sqlite.pm
+++ b/Bugzilla/DB/Sqlite.pm
@@ -219,6 +219,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)";
}