Jump to content

PHP Mail date wrong


ben14

Recommended Posts

Well there are several factors here.

1.) Look at the header of a received piece of mail, make sure the header date/time is really wrong, or is it the email client interpreting wrong? Probably wrong in the header but worth a look

2.) Depending on your version of PHP (5.0.5+ I think) in the PHP.ini you can set your default timezone and php bases all date functions off of the timezone, this is worth checking into as well (default.timezone = US/Eastern .... etc).

3.) It's funny that you mention January 1, 1970 as that is the date of the UNIX Epoch to which all UNIX timestamps start counting seconds from. Are you sure your not stamping the email your sending (using mktime() perhaps?) and maybe not doing a proper calculation of some sort?
Link to comment
https://forums.phpfreaks.com/topic/8791-php-mail-date-wrong/#findComment-32282
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.