Re: mail() Function and time

From: Date: Wed, 04 Apr 2001 12:47:05 +0000
Subject: Re: mail() Function and time
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6490@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi James, On 02 April 2001 at 16:01:54 +0100 (which was 16:01 where I live) James Moore wrote to David Elliott and made these points: >> Date: Fri, 30 Mar 2001 13:42:59 0000 >> >> it should be. >> >> Date: Fri, 30 Mar 2001 13:42:59 +0100 >> >> I have checked the server for time zone etc. >> >> I also run an SMTP server from it (Not exchange) and everything is OK on >> that. JM> I just checked this with 4.0.5RC5 and 4.0.6-dev and it works for JM> me.. looks like screwed Daylight savings time doesnt seem to be a JM> problem with PHP although because it doesnt touch the date header JM> (which is done by the mail server itself.) One option is to set JM> your own valid date header using the extra argument to mail. Doing this (from a server in the UK), using: mail( $to, $subj, $body, "Date: ".date("r")); I get a date of: Date: Wed, 4 pr 2001 13:00:00 -0100 which makes the cure worse than the problem! I've tried using setlocale( LC_TIME, "uk_UK") but that doesn't help. I think I'll let the mail server put its incorrect date in rather than use the even more incorrect one that PHP provides :-(... unless anyone has any other ideas. - -- Cheers -- .\\arck D. Pearlstone -- Consultant Software Engineer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com ] Headline - Drunken Drivers Paid $1000 -----BEGIN PGP SIGNATURE----- Version: 6.5.8ckt (build 04) Comment: PGP Sealed for freshness iQA/AwUBOssXyTnkJKuSnc2gEQLuzgCg82lYV4JJaQS1MF9aPd3hqJ4GhtQAoMrn iIg5pc7CA0gRaQckevxbqc2J =sRtb -----END PGP SIGNATURE-----

« previous php.windows (#6490) next »