#28685 [NEW]: function Mail() does take daylightsaving time into account

From: Date: Mon, 07 Jun 2004 21:21:34 +0000
Subject: #28685 [NEW]: function Mail() does take daylightsaving time into account
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60525@lists.php.net to get a copy of this message
From: marcel at hoogantink dot com Operating system: WINDOWS (XP) PHP version: 4CVS-2004-06-07 (stable) PHP Bug Type: Date/time related Bug description: function Mail() does take daylightsaving time into account 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: <000a01c44cd2$2fd248d0$f0b9b6d4@hoogantink> Reply-To: "Marcel Hoog Antink" <marcel@hoogantink.com> From: "Marcel Hoog Antink" <marcel@technosoft.nl> To: "Marcel-Technosoft" <hoogantink@technosoft.nl> 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: hoogantink@technosoft.nl MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: Technosoft Support <enquete@technosoft.nl> Reply-To: Technosoft Support <enquete@technosoft.nl> Return-Path: Technosoft Support <enquete@technosoft.nl> -- Edit bug report at http://bugs.php.net/?id=28685&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28685&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28685&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28685&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28685&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28685&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28685&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28685&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28685&r=support Expected behavior: http://bugs.php.net/fix.php?id=28685&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28685&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28685&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28685&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28685&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28685&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28685&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28685&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28685&r=float

« previous php.bugs (#60525) next »