php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40308 RFC822 constant not RFC conform
Submitted: 2007-02-01 18:46 UTC Modified: 2007-02-01 19:00 UTC
From: thomas dot weidner at gmx dot at Assigned:
Status: Closed Package: Date/time related
PHP Version: 5.2.0 OS: all
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thomas dot weidner at gmx dot at
New email:
PHP Version: OS:

 

 [2007-02-01 18:46 UTC] thomas dot weidner at gmx dot at
Description:
------------
The DATE_RFC822 constant produces not RFC822 conform output. RFC822 standard only defines the +xx00, GMT and american abbreviated constants. But not CET and all other timezone abbreviations.

For worldwide RFC conform output +xx00 should be used instead of timezone abbreviation.

Reproduce code:
---------------
date_default_timezone_set('Europe/Vienna');
print "\n".date(DATE_RFC822);


Expected result:
----------------
Thu, 01 Feb 2007 19:38:55 +0100


Actual result:
--------------
Thu, 01 Feb 2007 19:38:55 CET


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-01 18:51 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-02-01 19:00 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.

This has already been fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 00:01:27 2024 UTC