Fixed a date problem where the ^D macro was not working properly.

This commit is contained in:
JT Smith 2002-08-22 03:42:48 +00:00
parent b2edd00fa8
commit ef533cc56e
2 changed files with 11 additions and 13 deletions

View file

@ -18,11 +18,7 @@ use WebGUI::Macro;
sub _replacement {
my (@param, $temp);
@param = WebGUI::Macro::getParams($_[0]);
if ($param[0] ne "") {
$temp = epochToHuman(time(),$param[0]);
} else {
$temp = localtime(time());
}
$temp = epochToHuman(time(),$param[0]);
return $temp;
}