#37017 [Asn->Csd]: strtotime fails before 13:00:00 with some time zones identifiers
| From: | derick@php.net | Date: | Tue, 11 Apr 2006 18:04:01 +0000 |
| Subject: | #37017 [Asn->Csd]: strtotime fails before 13:00:00 with some time zones identifiers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95626@lists.php.net to get a copy of this message | ||
ID: 37017
Updated by: derick@php.net
Reported By: jerdonek at gmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Date/time related
Operating System: Mac OS X 10.3.9
PHP Version: 5.1.2
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-04-08 12:54:27] derick@php.net
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...
------------------------------------------------------------------------
[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