From: gerv%gerv.net <> Date: Sat, 27 Jul 2002 01:16:34 +0000 (+0000) Subject: Bug 158651 - currenttime should use time2str. Patch by burnus@gmx.de; 2xr=gerv. X-Git-Tag: bugzilla-2.17.1~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91c380dc0ccc1b6f958fdaeb9c1888bbfbba5821;p=thirdparty%2Fbugzilla.git Bug 158651 - currenttime should use time2str. Patch by burnus@gmx.de; 2xr=gerv. --- diff --git a/buglist.cgi b/buglist.cgi index 7863dda3e4..123e3d4b30 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -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) { diff --git a/globals.pl b/globals.pl index 19be37b81a..d20b892a6b 100644 --- a/globals.pl +++ b/globals.pl @@ -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 , diff --git a/long_list.cgi b/long_list.cgi index a828b87112..33975f5b1e 100755 --- a/long_list.cgi +++ b/long_list.cgi @@ -99,7 +99,6 @@ $vars->{'bugs'} = \@bugs; $vars->{'use_keywords'} = 1 if (@::legal_keywords); $vars->{'quoteUrls'} = \"eUrls; -$vars->{'time2str'} = \&time2str; $vars->{'str2time'} = \&str2time; # Work out a sensible filename for Content-Disposition. diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index d891932903..d50d54cc5d 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -38,7 +38,7 @@ %]
[% query FILTER html %]