#36224 [Opn->Asn]: date(DATE_ATOM) gives wrong resulsts
| From: | tony2001@php.net | Date: | Tue, 31 Jan 2006 11:00:44 +0000 |
| Subject: | #36224 [Opn->Asn]: date(DATE_ATOM) gives wrong resulsts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92687@lists.php.net to get a copy of this message | ||
ID: 36224
Updated by: tony2001@php.net
Reported By: bjori@php.net
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: FreeBSD6.0-RELEASE
PHP Version: 5CVS-2006-01-31 (CVS)
-Assigned To:
+Assigned To: derick
New Comment:
Assigned to the maintainer.
Previous Comments:
------------------------------------------------------------------------
[2006-01-31 11:56:00] bjori@php.net
Description:
------------
Quote from the RFC3339 (5.6. Internet Date/Time Format):
time-numoffset = ("+" / "-") time-hour ":" time-minute
time-offset = "Z" / time-numoffset
However, DATE_ATOM does not insert that ":" in the time-offset as
required.
Reproduce code:
---------------
php -r 'print date(DATE_ATOM)';
Expected result:
----------------
2006-01-31T11:50:05+01:00
Actual result:
--------------
2006-01-31T11:50:05+0100
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36224&edit=1