Make the Date macro handle leading and trailing whitespace. Fixes bug #11542.
This commit is contained in:
parent
42a6b612f7
commit
b9c2a3b0ad
3 changed files with 15 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue