php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37922 DATE_ATOM bug
Submitted: 2006-06-27 03:18 UTC Modified: 2006-06-27 04:05 UTC
From: evert at collab dot nl Assigned:
Status: Closed Package: Date/time related
PHP Version: 5.1.4 OS: Slackware Linux 10.1
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: evert at collab dot nl
New email:
PHP Version: OS:

 

 [2006-06-27 03:18 UTC] evert at collab dot nl
Description:
------------
date(DATE_ATOM)

produces an incorrect date

seems to look like Bug #36224,
however, this was said to be fixed in CVS and since then several php releases have been spread..

Reproduce code:
---------------
echo(date(DATE_ATOM));


Expected result:
----------------
something like

2006-06-27T05:14:02+02:00

Actual result:
--------------
2006-06-27T05:14:02+0200

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-27 03:44 UTC] evert at collab dot nl
Sorry.. firefox automatically filled in this faulty title in the confimation screen.. it's definitly a different bug as #32983
 [2006-06-27 04:05 UTC] bjori@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

bjori@lindsay php5$ 
sapi/cli/php -r 'var_dump(date(DATE_ATOM));'
string(25) "2006-06-27T06:02:08+02:00"

Works just fine.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 09:00:02 2026 UTC