note 106601 added to datetime.construct
| From: | ale at alejandrolapeyre dot com dot ar | Date: | Mon, 21 Nov 2011 20:54:30 +0000 |
| Subject: | note 106601 added to datetime.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184605@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 190.51.95.11
----
Manual Page -- http://www.php.net/manual/en/datetime.construct.php
Edit -- https://master.php.net/note/edit/106601
Del: integrated -- https://master.php.net/note/delete/106601/integrated
Del: useless -- https://master.php.net/note/delete/106601/useless
Del: bad code -- https://master.php.net/note/delete/106601/bad+code
Del: spam -- https://master.php.net/note/delete/106601/spam
Del: non-english -- https://master.php.net/note/delete/106601/non-english
Del: in docs -- https://master.php.net/note/delete/106601/in+docs
Del: other reasons-- https://master.php.net/note/delete/106601
Reject -- https://master.php.net/note/reject/106601
Search -- https://master.php.net/manage/user-notes.php