#36224 [Asn->Csd]: date(DATE_ATOM) gives wrong resulsts
| From: | derick@php.net | Date: | Tue, 31 Jan 2006 18:43:55 +0000 |
| Subject: | #36224 [Asn->Csd]: date(DATE_ATOM) gives wrong resulsts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92725@lists.php.net to get a copy of this message | ||
ID: 36224
Updated by: derick@php.net
Reported By: bjori@php.net
-Status: Assigned
+Status: Closed
Bug Type: Date/time related
Operating System: FreeBSD6.0-RELEASE
PHP Version: 5CVS-2006-01-31 (CVS)
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
And thanks for the patch!
Previous Comments:
------------------------------------------------------------------------
[2006-01-31 12:00:43] tony2001@php.net
Assigned to the maintainer.
------------------------------------------------------------------------
[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