summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-07-11 22:46:05 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-07-11 22:46:05 +0200
commit1356690c20a28e7265b76d9c4badeba21f7406b8 (patch)
tree82dd80def2097544dda983308f8da510c8b42b6a
parenta446cca4e59bb1708e4556a7e5b52dc6a47dc9eb (diff)
downloadbugzilla-1356690c20a28e7265b76d9c4badeba21f7406b8.tar.gz
bugzilla-1356690c20a28e7265b76d9c4badeba21f7406b8.tar.xz
Bug 1283848 - Setting needinfo at time of bug filing results in relative date text of "NeedInfo From: <user> 47 years ago"
-rw-r--r--Bugzilla/Flag.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 8ce26aaa8..7e039f077 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -531,6 +531,8 @@ sub update_flags {
# This is a new flag.
my $flag = $class->create($new_flag, $timestamp);
$new_flag->{id} = $flag->id;
+ $new_flag->{creation_date} = format_time($timestamp, '%Y.%m.%d %H:%i:%s');
+ $new_flag->{modification_date} = format_time($timestamp, '%Y.%m.%d %H:%i:%s');
$class->notify($new_flag, undef, $self, $timestamp);
}
else {