Am using strtotime
to get seconds past 1 January 1970
, but am not understanding that why am getting -3600
if the clock is set to 12.00AM
and I get 0
when the clock is set to 1 AM
, so what's with that 1 HOUR
? Is it an issue with the timezone?
echo 'I Expect 0 Here '.strtotime('1st January 1970').'<br />';
//This gives me -3600
echo 'I Expect 3600 Here '.strtotime('1st January 1970 01.00AM');
//This gives me 0
P.S I've not set any Time Zone in my PHP file or I've not even modified my .ini file (Fresh Installed XAMPP)
Update : Time-Zone : Europe/Berlin