diff options
author | jake%bugzilla.org <> | 2002-11-28 01:00:20 +0100 |
---|---|---|
committer | jake%bugzilla.org <> | 2002-11-28 01:00:20 +0100 |
commit | 0fcc20760ab4c49ec7e3b93f9025a9b0b8d2046b (patch) | |
tree | d0b0499d6800b30420d6a96eb3ac87e5b6ff1eec /globals.pl | |
parent | bc3da73c9bfb25bab7416b473bdbcbed38d7ef3f (diff) | |
download | bugzilla-0fcc20760ab4c49ec7e3b93f9025a9b0b8d2046b.tar.gz bugzilla-0fcc20760ab4c49ec7e3b93f9025a9b0b8d2046b.tar.xz |
Bug 67077 - We now include the timezone (as configured in editparams.cgi) on every time we display.
r=justdave
a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/globals.pl b/globals.pl index 07e9804c2..547fd1b95 100644 --- a/globals.pl +++ b/globals.pl @@ -1294,7 +1294,7 @@ sub GetLongDescriptionAsText { my $result = ""; my $count = 0; my $anyprivate = 0; - my ($query) = ("SELECT profiles.login_name, longdescs.bug_when, " . + my ($query) = ("SELECT profiles.login_name, DATE_FORMAT(longdescs.bug_when,'%Y.%d.%m %H:%i'), " . " longdescs.thetext, longdescs.isprivate " . "FROM longdescs, profiles " . "WHERE profiles.userid = longdescs.who " . @@ -1316,7 +1316,7 @@ sub GetLongDescriptionAsText { my ($who, $when, $text, $isprivate, $work_time) = (FetchSQLData()); if ($count) { $result .= "\n\n------- Additional Comments From $who".Param('emailsuffix')." ". - time2str("%Y-%m-%d %H:%M", str2time($when)) . " -------\n"; + Bugzilla::Util::format_time($when) . " -------\n"; } if (($isprivate > 0) && Param("insidergroup")) { $anyprivate = 1; @@ -1332,7 +1332,7 @@ sub GetComments { my ($id) = (@_); my @comments; SendSQL("SELECT profiles.realname, profiles.login_name, - date_format(longdescs.bug_when,'%Y-%m-%d %H:%i'), + date_format(longdescs.bug_when,'%Y.%m.%d %H:%i'), longdescs.thetext, longdescs.work_time, isprivate, date_format(longdescs.bug_when,'%Y%m%d%H%i%s') @@ -1793,6 +1793,9 @@ $::template ||= Template->new( } return $var; } , + + # Format a time for display (more info in Bugzilla::Util) + time => \&Bugzilla::Util::format_time, } , } ) || die("Template creation failed: " . Template->error()); |