php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36224 date(DATE_ATOM) gives wrong resulsts
Submitted: 2006-01-31 11:56 UTC Modified: 2006-01-31 19:43 UTC
From: bjori@php.net Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: 5CVS-2006-01-31 (CVS) OS: FreeBSD6.0-RELEASE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bjori@php.net
New email:
PHP Version: OS:

 

 [2006-01-31 11:56 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-31 12:00 UTC] tony2001@php.net
Assigned to the maintainer.
 [2006-01-31 19:43 UTC] derick@php.net
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!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC