ID: 13885
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Date/time related
Operating System: Windows 2000 SP2
PHP Version: 4.0.6
New Comment:
I must be missing something here. date('r') is intended to display an RFC822 date
string. Section 5.1 of RFC822 clearly states that +0100 is a perfectly valid way to
represent the timezone. So how is this function not working as expected?
Previous Comments:
------------------------------------------------------------------------
[2001-10-31 06:45:57] [EMAIL PROTECTED]
The 'r' format string doesn't work as expected:
print(date("r", 1));
Prints: "Thu, 1 Jan 1970 01:00:01 +0100"
print(gmdate("r",1));
Prints: "Thu, 1 Jan 1970 00:00:01 +0100"
I think the '+0100' should've been 'GMT'.
(Done on a system with GMT+1)
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13885&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]