From 9e45d88ab73810a9185e7c4370854bf70228c0b9 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Wed, 4 Dec 2002 04:23:27 +0000 Subject: [PATCH] Preventing a potential crash bug. --- lib/WebGUI/DateTime.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/DateTime.pm b/lib/WebGUI/DateTime.pm index f1ecbc0c1..f88dc0164 100644 --- a/lib/WebGUI/DateTime.pm +++ b/lib/WebGUI/DateTime.pm @@ -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";