ID: 37017
Updated by: [EMAIL PROTECTED]
Reported By: jerdonek at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: Mac OS X 10.3.9
PHP Version: 5.1.2
-Assigned To:
+Assigned To: derick
New Comment:
I've a patch for this, but have to check some other things first before
committing. THe reason for this is that the parser saw "12:59:59 Am" as
a 12h time notation... and "eric" is not a valid timezone identifier...
Previous Comments:
------------------------------------------------------------------------
[2006-04-08 12:22:19] jerdonek at gmail dot com
Description:
------------
strtotime() returns no output when the time part of the
date-time is between 00:00:00 and 13:00:00 and the time
zone identifier is America/New_York for example. The
error does not occur for GMT for example.
Reproduce code:
---------------
echo strtotime("2006-05-12 13:00:01 America/New_York") . "<br>";
echo strtotime("2006-05-12 13:00:00 America/New_York") . "<br>";
echo strtotime("2006-05-12 12:59:59 America/New_York") . "<br>";
echo strtotime("2006-05-12 12:59:59 GMT") . "<br>";
Expected result:
----------------
1147453201
1147453200
1147453199
1147438799
Actual result:
--------------
1147453201
1147453200
1147438799
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37017&edit=1