00 with some time zones identifiers
| Bug #37017 | strtotime fails before 13:00:00 with some time zones identifiers | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-04-08 12:22 UTC | Modified: | 2006-04-11 18:04 UTC | ||
| From: | jerdonek at gmail dot com | Assigned: | derick (profile) | ||
| Status: | Closed | Package: | Date/time related | ||
| PHP Version: | 5.1.2 | OS: | Mac OS X 10.3.9 | ||
| Private report: | No | CVE-ID: | None | ||
[2006-04-08 12:22 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-04-08 12:54 UTC] derick@php.net
[2006-04-11 18:04 UTC] derick@php.net