#37616 [Asn->Csd]: DATE_RFC822 does not product RFC 822 dates

From: Date: Tue, 30 May 2006 15:27:06 +0000
Subject: #37616 [Asn->Csd]: DATE_RFC822 does not product RFC 822 dates
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97803@lists.php.net to get a copy of this message
ID: 37616 Updated by: bjori@php.net Reported By: evert at collab dot nl -Status: Assigned +Status: Closed Bug Type: Date/time related Operating System: Debian PHP Version: 5.1.4 -Assigned To: derick +Assigned To: bjori 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. Fixed in HEAD & 5_2. RFC822 uses only 2digits for the year (also fixed) Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#97803) next »