summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-10-01 00:13:31 +0200
committerDylan William Hardison <dylan@hardison.net>2014-10-01 00:13:31 +0200
commit98284f0a6fcfaee9aee2c26e0ae0d07692a6ee84 (patch)
treec87251b00e4f8b3c0af52e8d4f8b6e857b6edf5a /Bugzilla
parent977ba8ba7c0011c723a11b8a18982205fcac5462 (diff)
downloadbugzilla-98284f0a6fcfaee9aee2c26e0ae0d07692a6ee84.tar.gz
bugzilla-98284f0a6fcfaee9aee2c26e0ae0d07692a6ee84.tar.xz
Bug 1075196 - Backport Bugzilla::Flag->update() modification_time fix from Bug 1070317
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Flag.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index f0cb830b5..d89a3adb4 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -472,14 +472,15 @@ sub create {
sub update {
my $self = shift;
my $dbh = Bugzilla->dbh;
- my $timestamp = shift || $dbh->selectrow_array('SELECT NOW()');
+ my $timestamp = shift || $dbh->selectrow_array('SELECT LOCALTIMESTAMP(0)');
my $changes = $self->SUPER::update(@_);
if (scalar(keys %$changes)) {
$dbh->do('UPDATE flags SET modification_date = ? WHERE id = ?',
undef, ($timestamp, $self->id));
- $self->{'modification_date'} = format_time($timestamp, '%Y.%m.%d %T');
+ $self->{'modification_date'} =
+ format_time($timestamp, '%Y.%m.%d %T', Bugzilla->local_timezone);
Bugzilla->memcached->clear({ table => 'flags', id => $self->id });
}