#40308 [Opn->Fbk]: RFC822 constant not RFC conform

From: Date: Thu, 01 Feb 2007 18:51:54 +0000
Subject: #40308 [Opn->Fbk]: RFC822 constant not RFC conform
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108304@lists.php.net to get a copy of this message
ID: 40308 Updated by: tony2001@php.net Reported By: thomas dot weidner at gmx dot at -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: all PHP Version: 5.2.0 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2007-02-01 18:46:35] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40308&edit=1

« previous php.bugs (#108304) next »