Preventing a potential crash bug.
This commit is contained in:
parent
8943c7df58
commit
9e45d88ab7
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ sub epochToHuman {
|
|||
my ($offset, $temp, $hour12, $value, $output, @date, $day, $month);
|
||||
$offset = $session{user}{timeOffset} || 0;
|
||||
$offset = $offset*3600;
|
||||
$temp = $_[0] || time();
|
||||
$temp = int($_[0]) || time();
|
||||
$temp = $temp+$offset;
|
||||
@date = &localtime($temp);
|
||||
$output = $_[1] || "%z %Z";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue