Hey I am writing a news script, and each post will be Date/Time stamped. Now, I am allowing the users to offset the time (from the server time to there time zone). So, todo this I am taking the offset, multipling it by 120 (to get it into seconds) then running it through the date() and mktime() functions, but when I do, it outputs the time of: November 14, 2035, 9:21:46 pm (the hours, mins, secs change of course). I have included my code, any help is greatly appreciated.
$offset="-2";
$offsetSEC=$offset * 120;
$sec=time() + $offsetSEC;
$time = date("F j, Y, g:i:s a", mktime(0,0,$sec));
print($time);