php.net |  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: hartmut@php.net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.0.0b2 (beta2) OS:
Private report: No CVE-ID:
 [2003-11-19 11:32 UTC] hartmut@php.net
Description:
------------
"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 ...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-19 14:53 UTC] hholzgra@php.net
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 http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net 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] hholzgra@php.net
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] nlopess@php.net
Fixed in 5.1.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 13:02:46 2014 UTC