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