Skip to content

Commit

Permalink
fixed archive integer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Mar 6, 2021
1 parent 00c239d commit b66f272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b66f272

Please sign in to comment.