summaryrefslogtreecommitdiffstats
path: root/extensions/MyDashboard/lib/Queries.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-03-06 19:21:37 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-03-06 19:21:37 +0100
commitb50bb4c26c7d50192916b432915c1bd1633a5a6f (patch)
treeb3a3ae9d1ec23384b2a05d972a5ae69eccd80fb2 /extensions/MyDashboard/lib/Queries.pm
parentead39090a962e87ad790cf93943ba5f242d11882 (diff)
downloadbugzilla-b50bb4c26c7d50192916b432915c1bd1633a5a6f.tar.gz
bugzilla-b50bb4c26c7d50192916b432915c1bd1633a5a6f.tar.xz
Bug 848271 - 'Assigned to You' section says 'in the future' for bug last updated time
Diffstat (limited to 'extensions/MyDashboard/lib/Queries.pm')
-rw-r--r--extensions/MyDashboard/lib/Queries.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/MyDashboard/lib/Queries.pm b/extensions/MyDashboard/lib/Queries.pm
index b4d80e2f2..e8813989b 100644
--- a/extensions/MyDashboard/lib/Queries.pm
+++ b/extensions/MyDashboard/lib/Queries.pm
@@ -238,8 +238,9 @@ sub query_flags {
{ Slice => {} }, $user->login);
}
- # Add the fancy date
+ # Format the created date specific to the user's timezone and add the fancy version
foreach my $flag (@$flags) {
+ $flag->{'created'} = format_time($flag->{'created'}, '%Y-%m-%d %H:%M');
my $date_then = datetime_from($flag->{'created'});
$flag->{'created_fancy'} = time_ago($date_then, $date_now);
}