diff --git a/archive.php b/archive.php index d5d05bcb..f051ad2e 100644 --- a/archive.php +++ b/archive.php @@ -171,7 +171,7 @@ // must adjust the selected time to server timestamp $timeoffset = $useroffset - $GLOBALS['xoopsConfig']['server_TZ']; $timeoffsethours = (int)$timeoffset; - $timeoffsetminutes = (($timeoffset - $timeoffsethours) * 60); + $timeoffsetminutes = (int)(($timeoffset - $timeoffsethours) * 60); $monthstart = mktime(0 - $timeoffsethours, 0 - $timeoffsetminutes, 0, $frommonth, 1, $fromyear); $monthend = mktime(23 - $timeoffsethours, 59 - $timeoffsetminutes, 59, $frommonth + 1, 0, $fromyear);