]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 158651 - currenttime should use time2str. Patch by burnus@gmx.de; 2xr=gerv.
authorgerv%gerv.net <>
Sat, 27 Jul 2002 01:16:34 +0000 (01:16 +0000)
committergerv%gerv.net <>
Sat, 27 Jul 2002 01:16:34 +0000 (01:16 +0000)
buglist.cgi
globals.pl
long_list.cgi
template/en/default/list/list.html.tmpl

index 7863dda3e4967bf42b6462a85e3faf8f40fedf61..123e3d4b303fccfe58c93452ac1ea241e8906ab2 100755 (executable)
@@ -1539,7 +1539,7 @@ if ($::FORM{'debug'}) {
 $vars->{'splitheader'} = $::COOKIE{'SPLITHEADER'} ? 1 : 0;
 
 $vars->{'quip'} = GetQuip();
-$vars->{'currenttime'} = time2str("%a %b %e %T %Z %Y", time());
+$vars->{'currenttime'} = time();
 
 # The following variables are used when the user is making changes to multiple bugs.
 if ($dotweak) {
index 19be37b81a83441fabb9d826938ede97b6fd03a0..d20b892a6b8519db3b460dab2cab2ae31e71a7d1 100644 (file)
@@ -1757,6 +1757,9 @@ $::vars =
     # Function for retrieving global parameters.
     'Param' => \&Param ,
 
+    # Function to create date strings
+    'time2str' = \&time2str;
+
     # Function for processing global parameters that contain references
     # to other global parameters.
     'PerformSubsts' => \&PerformSubsts ,
index a828b8711223b75731173cb6062eb0a7ff8a1ae3..33975f5b1ea7fd2c5daf374b03da6ebca273fcd4 100755 (executable)
@@ -99,7 +99,6 @@ $vars->{'bugs'} = \@bugs;
 $vars->{'use_keywords'} = 1 if (@::legal_keywords);
 
 $vars->{'quoteUrls'} = \&quoteUrls;
-$vars->{'time2str'} = \&time2str;
 $vars->{'str2time'} = \&str2time;
 
 # Work out a sensible filename for Content-Disposition.
index d89193290390f71a6491906b05ce07081fa1ccdf..d50d54cc5d1f51d84e6e244bd61c9e12a642dc2e 100644 (file)
@@ -38,7 +38,7 @@
 %]
 
 <div align="center">
-  <b>[% currenttime %]</b><br>
+  <b>[% time2str("%a %b %e %T %Z %Y", currenttime) %]</b><br>
 
   [% IF debug %]
     <p>[% query FILTER html %]</p>