Make the Date macro handle leading and trailing whitespace. Fixes bug #11542.

This commit is contained in:
Colin Kuskie 2010-05-02 01:07:35 -07:00
parent 42a6b612f7
commit b9c2a3b0ad
3 changed files with 15 additions and 6 deletions

View file

@ -42,6 +42,10 @@ sub process {
if (! defined $time) {
$time = time();
}
else {
$time =~ s/^\s+//;
$time =~ s/\s+$//;
}
my $temp = $session->datetime->epochToHuman($time, $_[0]);
return $temp;
}