note 34639 added to function.mail
| From: | drecaise at hotmail dot com | Date: | Fri, 01 Aug 2003 22:56:27 +0000 |
| Subject: | note 34639 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53168@lists.php.net to get a copy of this message | ||
I just found out this on my windows XP machine:
background info:
- I live in the Netherlands (timezone= GMT+1)
When you enable the option to automaticaly adjust your system clock for daylight savings (on
windows' control panel), php's date() function and the Date header in the mail function
will return different time zones.
an example:
<?php
$test= date('O');
?>
now $test is: "+0200"
But if I send a mail with php using the mail() function the Date header is telling me +0100 (which
seems to me is right because I live in the Netherlands where timezone=GMT+1)
This bug can be caused by windows (returning the wrong timezone to php's date() function). Or
php's date() function is doing something wrong itself.
I found this trying to figure out why my emails appeared to be sent one hour later than they really
were sent. (I use Mozilla mail and appearantly it suffers from the same bug as php's date()
function ).
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34639
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34639&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34639&report=yes