note 106601 rejected from datetime.construct by thiago
| From: | thiago@php.net | Date: | Mon, 28 Nov 2011 11:40:49 +0000 |
| Subject: | note 106601 rejected from datetime.construct by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184712@lists.php.net to get a copy of this message | ||
Note Submitter: ale at alejandrolapeyre dot com dot ar
----
If you create a DateTime object from a string in the ISO8601 format "YYYY-MM-DDTHH:MM:SSZ"
the timezone is set to "Z". I expected the timezone "UTC" instead, as
"Z" is a notation for UTC in the ISO8601 documentation.
If you try to create a DateTimeZone with "Z" as a parameter it throws, as "Z" is
not a valid Timezone identifier.
PHP Version 5.3.8