Author Topic: Date for sent mail not user's timezone  (Read 4490 times)

Offline kali

  • Jr. Member
  • **
  • Posts: 57
Date for sent mail not user's timezone
« on: January 07, 2008, 08:44:46 PM »
The "Date:" header in sent mail is created in sendmail.inc with date('r'), but that will always make the Date: field in server timezone format. Result is to make some mail clients miss-display sent mail.

That header should be formatted using the local user's timezone and not the server's. Can someone help and let me know what that call should be to pickup the user timezone pref and make it display in that format (as well as RFC 2822).

Thanks!

Offline kali

  • Jr. Member
  • **
  • Posts: 57
Re: Date for sent mail not user's timezone
« Reply #1 on: January 08, 2008, 02:54:57 AM »
Have coded a fix - and it works. Now mail sent with webmail will show up properly in other mail clients (like Outlook Express) if the user is in a different timezone than the server.

It is not elegant (builds the Date: header line as a string) - but proves the point. It was actually only a challenge due to how the timezone data is kept in user prefs. Hopefully dev folks can address with a cleaner approach than I took.