summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-08-27 09:32:11 +0200
committerlpsolit%gmail.com <>2008-08-27 09:32:11 +0200
commit615cfb88c1aae1f8372b323e9c53a84d8c9146fe (patch)
treed41bf992b9de42c29141e41714b6108866a39204 /Bugzilla/Template.pm
parent68c8ee64ec7dc985931f17f98cb83ee153dcd25c (diff)
downloadbugzilla-615cfb88c1aae1f8372b323e9c53a84d8c9146fe.tar.gz
bugzilla-615cfb88c1aae1f8372b323e9c53a84d8c9146fe.tar.xz
Bug 182238: Allow users to choose what time zone to display times in - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 8a322fae5..76ff9f11d 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -604,7 +604,15 @@ sub create {
},
# Format a time for display (more info in Bugzilla::Util)
- time => \&Bugzilla::Util::format_time,
+ time => [ sub {
+ my ($context, $format) = @_;
+ return sub {
+ my $time = shift;
+ return format_time($time, $format);
+ };
+ },
+ 1
+ ],
# Bug 120030: Override html filter to obscure the '@' in user
# visible strings.