php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28685 function Mail() does not take daylightsaving time into account
Submitted: 2004-06-07 23:21 UTC Modified: 2004-06-08 17:00 UTC
From: marcel at hoogantink dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4CVS-2004-06-07 (stable) OS: WINDOWS (XP)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marcel at hoogantink dot com
New email:
PHP Version: OS:

 

 [2004-06-07 23:21 UTC] 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: <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>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-07 23:23 UTC] marcel at hoogantink dot com
I changed the Summary a little
 [2004-06-08 17:00 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The date header is not being set by PHP. 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 19:01:28 2025 UTC