#26320 [Asn->Csd]: strtotime() does not understand ISO6801 datetime format as used in XMLSchema

From: Date: Tue, 28 Jun 2005 21:28:29 +0000
Subject: #26320 [Asn->Csd]: strtotime() does not understand ISO6801 datetime format as used in XMLSchema
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81152@lists.php.net to get a copy of this message
ID: 26320 Updated by: nlopess@php.net Reported By: hartmut@php.net -Status: Assigned +Status: Closed Bug Type: Feature/Change Request PHP Version: 5.0.0b2 (beta2) New Comment: Fixed in 5.1. Previous Comments: ------------------------------------------------------------------------ [2003-11-25 04:32:12] 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 ... ------------------------------------------------------------------------ [2003-11-19 14:53:21] 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-19 11:32:07] 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 ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26320&edit=1

« previous php.bugs (#81152) next »