[bugzilla-gnome-org-upstream/4.4] Bug 1303702 - bug history table 'when' column shows 00:00 only using sqlite
- From: Andrea Veri <av src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-upstream/4.4] Bug 1303702 - bug history table 'when' column shows 00:00 only using sqlite
- Date: Tue, 20 Feb 2018 10:58:02 +0000 (UTC)
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]