ID: 28685 User updated by: marcel at hoogantink dot com -Summary: function Mail() does take daylightsaving time into account Reported By: marcel at hoogantink dot com Status: Open Bug Type: Date/time related Operating System: WINDOWS (XP) PHP Version: 4CVS-2004-06-07 (stable) New Comment:
I changed the Summary a little Previous Comments: ------------------------------------------------------------------------ [2004-06-07 23:21:32] marcel at hoogantink dot com Description: ------------ Sending mail with the PHP function Mail() gives a date in the mail that does not have the daylight saving time effect in it. I am using Windows XP with GMT+1.00 and daylight savings (at this time of yaer) so in fact my time is GMT+2:00. I am running Apache 1.3.31 fow Win32 with PHP (latest build) Sending a mail gives a mail with a date GMT+1:00. (wrong) Sending a mail with outlook gives a date GMT+2:00 (OK) Whatch out: Normal you see this only in the header, because in 'normal' internet-mail this wrong time is "overruled" by other mailservers, and a assume that the last time stamp is used bij de mail-client like Outlook. I found it because I was locally emulating my Site with apache PHP and a little mailserver, and in my Email there was only ONE date: the one mail() created. Trying the same mail with outlook give the rigt time Reproduce code: --------------- Any call to mail() with Win XP. Expected result: ---------------- Message-ID: <[EMAIL PROTECTED]> Reply-To: "Marcel Hoog Antink" <[EMAIL PROTECTED]> From: "Marcel Hoog Antink" <[EMAIL PROTECTED]> To: "Marcel-Technosoft" <[EMAIL PROTECTED]> Subject: test via netmailshar 22:58 Date: Mon, 7 Jun 2004 22:58:29 +0200 Actual result: -------------- Date: Mon, 07 Jun 2004 22:57:18 +0100 Subject: Test van de Technosoft Helpdesk Enquete (tav M. J. Hoog Antink(ts)) To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: Technosoft Support <[EMAIL PROTECTED]> Reply-To: Technosoft Support <[EMAIL PROTECTED]> Return-Path: Technosoft Support <[EMAIL PROTECTED]> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28685&edit=1