Bug #14828 Updated: Timezone on mail timestamp early by 12 hours
| From: | derick@php.net | Date: | Sat, 25 May 2002 10:31:43 +0000 |
| Subject: | Bug #14828 Updated: Timezone on mail timestamp early by 12 hours | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-8496@lists.php.net to get a copy of this message | ||
ID: 14828
Updated by: derick@php.net
Reported By: whitej@gmx.net
Status: Open
-Bug Type: Date/time related
+Bug Type: Mail related
Operating System: Windows NT4 SP6a
PHP Version: 4.1.1
New Comment:
reclassify
Previous Comments:
------------------------------------------------------------------------
[2002-02-08 22:07:37] gsanta@appliedreasoning.com
I too have stumbled unto this problem. A workaround is to add the
following "Date" header to the mail() function call.
"Date: ".date("D, j M Y H:i:s -0600")."\r\n"
In my case, I'm at CST so -0600 is what does it for me. Change yours
as necessary.
Here's how I use it in my code:
mail($emailToAddress,
$g_welcomeMessageSubjectLine,
$welcomeMessage,
"From: ".$g_sendWelcomeMsgFrom."\r\n".
"Date: ".date("D, j M Y H:i:s -0600")."\r\n");
The mail then arrives with the correct timestamp in the user's mailbox.
------------------------------------------------------------------------
[2002-01-08 09:56:43] whitej@gmx.net
This is similar in configuration to Bug #12680.
------------------------------------------------------------------------
[2002-01-03 12:07:18] whitej@gmx.net
I experienced a similar problem in php 4.06, but the time was only off
by 6 hours. Now the time is off by 12 hours. Here's a sample of the
mail headers...notice the "Date" line:
Return-Path: <dlab-rva-system@lists.wcom.com>
Received: from dgismtp03.wcomnet.com ([166.38.58.143]) by
pmmsg00.wcomnet.com (Netscape Messaging Server 4.15) with
ESMTP
id GPDFZW00.ALE for <justin.white@wcom.com>; Thu, 3 Jan 2002
16:47:56 +0000
Return-path: jack.duruji@wcom.com
Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33
#42262)
id <0GPD00H01FZVN5@dgismtp03.wcomnet.com> for justin.white@wcom.com;
Thu,
3 Jan 2002 16:47:55 +0000 (GMT)
Received: from dgismtp03.wcomnet.com by dgismtp03.wcomnet.com
(PMDF V5.2-33 #42262) with SMTP id
<0GPD00H01FZ8HB@dgismtp03.wcomnet.com> for
justin.white@wcom.com; Thu, 03 Jan 2002 16:47:55 +0000 (GMT)
Received: from smtp.wcomnet.com ([166.35.132.178])
by dgismtp03.wcomnet.com (PMDF V5.2-33 #42262)
with ESMTP id <0GPD00FAVFZ5EE@dgismtp03.wcomnet.com> for
justin.white@wcom.com; Thu, 03 Jan 2002 16:47:29 +0000 (GMT)
Received: from dlab - 166.35.132.178 by smtp.wcomnet.com with
Microsoft
SMTPSVC(5.5.1774.114.11); Thu, 03 Jan 2002 10:47:36 -0600
Date: Thu, 03 Jan 2002 10:47:36 +0600
From: jack.duruji@wcom.com
Subject: D Lab RVA# 1178-02 for Project 1178 - AN-30 (Data Regression)
X-Sender: <jack.duruji@wcom.com>
To: justin.white@wcom.com
Cc: justin.white@wcom.com
Reply-to: jack.duruji@wcom.com
Message-id: <001c53647160312ESERVER@smtp.wcomnet.com>
X-Mailer: D Lab RVA System
X-Priority: 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14828&edit=1