Time zone problems with PB mail library

Just starting out? Need help? Post your questions and find answers here.
davenull
User
User
Posts: 25
Joined: Sat Sep 17, 2005 5:31 pm
Location: Finland

Time zone problems with PB mail library

Post by davenull »

I have written a small program, which sends email if a remote installation fails. For some reason the email has wrong date/time stamp, like this:
Date: Thu, 3 Feb 2011 18:00:16 +0300 [17:00:16 EET]

However, the time zone should be +0200, not +0300, and the correct line would be:
Date: Thu, 3 Feb 2011 18:00:16 +0200 [18:00:16 EET]

When the email arrives, it doesn't appear at the top, since it was supposedly sent one hour ago. Any ideas what to do with this? I'm using the standard mail library in PB. All other email clients work right (Thunderbird, Horde, Outlook, etc).

Thanks.
davenull
User
User
Posts: 25
Joined: Sat Sep 17, 2005 5:31 pm
Location: Finland

Re: Time zone problems with PB mail library

Post by davenull »

Problem solved. I used SetMailAttribute(#Mail, #PB_Mail_Date, rfc2821_date_format$) and now everything works great.
Post Reply