#37616 [Csd]: DATE_RFC822 does not product RFC 822 dates
| From: | evert at collab dot nl | Date: | Tue, 13 Jun 2006 17:46:36 +0000 |
| Subject: | #37616 [Csd]: DATE_RFC822 does not product RFC 822 dates | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98331@lists.php.net to get a copy of this message | ||
ID: 37616
User updated by: evert at collab dot nl
Reported By: evert at collab dot nl
Status: Closed
Bug Type: Date/time related
Operating System: Debian
PHP Version: 5.1.4
Assigned To: bjori
New Comment:
Haven't checked it myself.. it was still the case in 5.1.4
If DATE_RSS is a reference of some kind to RFC822 then it should be
allright..
In any case.. thanks for your quick responses
Previous Comments:
------------------------------------------------------------------------
[2006-06-13 17:40:47] bjori@php.net
If you are having problems with the latest cvs
version(5.2), yes, please open another report.
------------------------------------------------------------------------
[2006-06-13 14:07:43] evert at collab dot nl
This bug includes DATE_RSS, forgot to tell, should i open a new bug?
------------------------------------------------------------------------
[2006-05-30 15:27:05] bjori@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.
Fixed in HEAD & 5_2.
RFC822 uses only 2digits for the year (also fixed)
------------------------------------------------------------------------
[2006-05-27 22:21:02] bjori@php.net
Patch (5.2-cvs and HEAD):
http://php.is/bugs/37616/bug37616.patch.txt
phpdoc: http://php.is/bugs/37616/bug37616.phpdoc.patch.txt
however; I don't quite see the need for this constant as
RFC2822 "supersedes the one specified in Request For
Comments (RFC) 822, "Standard for the Format of ARPA
Internet Text Messages", updating it to reflect current
practice and incorporating incremental changes that were
specified in other RFCs."
-Hannes
------------------------------------------------------------------------
[2006-05-27 21:22:47] evert at collab dot nl
Description:
------------
The DATE_RFC822 constant does not always produce proper dates
It puts a 'CEST' time zone identifier in the end of the string,
however there are only a few time zone abbriviations that are 'legal'
in RFC 822, instead it should show the offset in these cases..
Reproduce code:
---------------
echo(date(RFC822));
Expected result:
----------------
Thu, 25 May 2006 01:11:01 +0100
Actual result:
--------------
Thu, 25 May 2006 01:11:01 CEST
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37616&edit=1