php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3248 mail function putting wrong timezone info in message header?
Submitted: 2000-01-18 19:29 UTC Modified: 2002-06-18 18:13 UTC
From: chris at bcl dot co dot nz Assigned: hholzgra (profile)
Status: Closed Package: Mail related
PHP Version: 4.0 Beta 3 OS: Windows NT
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 36 = ?
Subscribe to this entry?

 
 [2000-01-18 19:29 UTC] chris at bcl dot co dot nz
Not sure if this is really a PHP problem or just Microsoft at work, but
sending email using the "mail" function seems to give incorrect
timezone info in the "Date:" header. eg:

Received:  from becks by macs.wn.bcl.co.nz; Wed, 19 Jan 2000 13:11:34 +1300 (NZDT)

(in this case becks=NT, macs=Unix - +1300 NZDT is correct)

Message-ID:  <200001190011.NAA19048@macs.wn.bcl.co.nz>
Date:             Wed, 19 Jan 2000 13:11:35 -1200

-1200 is wrong.

The NT timezone is set to +12:00 Auckland/Wellington, with Daylight saving enabled.

         

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-25 20:27 UTC] zak@php.net
As far as I can tell from the source code, PHP is not responsible for generating the email message headers.

Do other messages generated by the same server have the correct timezone information?
 [2000-07-25 21:26 UTC] hholzgra@php.net
implementation for mail on microsoft platforms
is in win32/sendmail.c

and in there is generation code for generating
 a Date: header if none was supplied by mail()
function ( see function PostHeader() )
 [2001-11-22 18:07 UTC] venaas@php.net
Not sure if it helps, but I have a nearly untested patch
that computes the offset using the diff between
php_localtime_r() and php_gmtime_r(). I never understood
where _timezone came from anyway.

 [2001-11-28 08:27 UTC] hholzgra@php.net
dup of #8909
 [2002-06-18 18:13 UTC] sniper@php.net
The #8909 was closed.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:28 2024 UTC