strtotime() does not understand ISO6801 datetime format as used in XMLSchema
| 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: | None | ||
[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
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-11-19 14:53 UTC] hholzgra@php.net
[2003-11-25 04:32 UTC] hholzgra@php.net