|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26320 strtotime() does not understand ISO6801 datetime format as used in XMLSchema
Submitted: 2003-11-19 11:32 UTC Modified: 2005-06-28 23:28 UTC
From: Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.0.0b2 (beta2) OS:
Private report: No CVE-ID: None
 [2003-11-19 11:32 UTC]
"2003-11-19T08:30:42Z" is not recognized as the 'T' and 'Z'
are understood as two (military) time zone specifiers which 
is not legal within a single time string

this has already partly fixed in CVS so that 
"2003-11-19T08:30:42Z" is being accepted
and returns the expected value,
but "2003-11-19T08:30:42" which is also valid 
as the "Z" is optional in ISO6801 will be parsed
as a time in the (military) 'T' timezone which equals
MST whereas in ISO6801 the 'T' is only a delimiter
to be put between the date and time parts of a 
datetime string. the timezone should still be GMT
in this special case ...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-19 14:53 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

 [2003-11-25 04:32 UTC]
my 'fix' works with bison 1.35 but not with 1.875 due to shift/shift conflicts although these conflicts are ok here ...
 [2005-06-28 23:28 UTC]
Fixed in 5.1.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon May 25 09:01:25 2020 UTC