ID: 42486 User updated by: up at co dot inbox dot lv Reported By: up at co dot inbox dot lv Status: Wont fix Bug Type: Unknown/Other Function Operating System: Gentoo Linux PHP Version: 5.2.4RC3 New Comment:
Ok, I believe the user, that have sent me an email message with the "Tue, 21 Aug 2007 06:23:46 UT" in the Date: header not mentioned this "Earth Rotation" timezone :D I suspect there's a bug in some mailing software, kind of missing "C" char after "UT". >From the link that you provided I see that difference between UT1 − UTC is allways less than one second, but strtotime() returns result exactly in seconds, not so precise. So by replacing "UT" string by "UTC" before parsing the date, we should get exactly the same time. I think this is more a documentation issue, but users will never meet this bug again. Previous Comments: ------------------------------------------------------------------------ [2007-08-30 12:49:17] [EMAIL PROTECTED] UT is not really a easy measurable timezone, unlike UTC. To support this correctly we should take care of leapseconds, and this is very much something you don't want to do. See http://en.wikipedia.org/wiki/DUT1 for what is different between UTC and UT. ------------------------------------------------------------------------ [2007-08-30 12:37:25] up at co dot inbox dot lv Description: ------------ strtotime() returns false if timezone is set to UT, it worked in php4 but is broken in php5 Reproduce code: --------------- <?php print strtotime('Tue, 21 Aug 2007 06:23:46 UT'); ?> Expected result: ---------------- On PHP Version 4.4.1: 1187677426 Actual result: -------------- Empty ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42486&edit=1