Greetings,
Using PHP 5.2.9 I've come across a case with two distinct timestamps producing the exact same date string when formatted with the php date() function. The second value is 3600 seconds apart from the first yet returns the same formatted result (01:00:00 AM), while the third value is 3599 apart from the first and returns an expected result of (01:59:59 AM)
echo date('m/d/y h:i:s A', '1257051600') . "\n"; // 11/01/09 01:00:00 AM
echo date('m/d/y h:i:s A', '1257055200') . "\n"; // 11/01/09 01:00:00 AM
echo date('m/d/y h:i:s A', '1257055199') . "\n"; // 11/01/09 01:59:59 AM
Any thoughts on this? I found this by chance but i'm assuming that it's not an isolated case, I have searched for any outstanding bugs with date() in PHP 5.2.9 but have not found anything yet
Thanks for any ideas!