#32599 [Opn->Bgs]: mail() generates an incorrect Date header during Daylight Savings Time
| From: | sniper@php.net | Date: | Wed, 06 Apr 2005 11:53:27 +0000 |
| Subject: | #32599 [Opn->Bgs]: mail() generates an incorrect Date header during Daylight Savings Time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76435@lists.php.net to get a copy of this message | ||
ID: 32599
Updated by: sniper@php.net
Reported By: mike-php at emerge2 dot com
-Status: Open
+Status: Bogus
Bug Type: Mail related
Operating System: Windows 2000
PHP Version: 4.3.10
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
See bug #29334
Previous Comments:
------------------------------------------------------------------------
[2005-04-05 23:58:16] mike-php at emerge2 dot com
Description:
------------
Problem: An email message sent with the mail() function under PHP
4.3.10 on Windows 2000 has an incorrect Date header during Daylight
Savings Time.
The identical problem was reported in
http://bugs.php.net/bug.php?id=28685. However, in
that closed bug
report, it was claimed that PHP does not add a Date header.
I believe that PHP does send a Date header, and an incorrect one at
that. When I telnet to my SMTP server, and manually send an email that
is missing the Date header, the SMTP server adds a correct one. When I
send an email, to the same SMTP server, using the mail() function in
PHP 4.3.10 under Windows 2000, the Date header is incorrect. I am
certain that it is PHP that is generating the incorrect Date header.
Another bug report also talks about this problem:
http://bugs.php.net/bug.php?id=24912
That report makes mention of the Windows Date Control Panel.
Interestingly, a call to date( 'r' ) returns the expected string, and
pays attention to the setting in the Date Control Panel. However,
mail() sends the same non-daylight-savings-time string no matter how
the Date Control Panel is set.
Perhaps mail() could simply call PHP's own date( 'r' ) function?
Reproduce code:
---------------
mail('mike-php@emerge2.com', 'My Subject', 'This is a test.');
Expected result:
----------------
(other headers omitted)
Date: Tue, 05 Apr 2005 15:28:59 -0400
Actual result:
--------------
(other headers omitted)
Date: Tue, 05 Apr 2005 15:28:59 -0500
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32599&edit=1