Commit 91c380dc authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 158651 - currenttime should use time2str. Patch by burnus@gmx.de; 2xr=gerv.

parent 65757d42
......@@ -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) {
......
......@@ -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 ,
......
......@@ -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.
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment