Maybe bug: CreateMail/SendMail sets wrong Date header?

Post bugreports for the Windows version here
hoerbie
Enthusiast
Enthusiast
Posts: 139
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Maybe bug: CreateMail/SendMail sets wrong Date header?

Post by hoerbie »

Hi,
in my own programs but also just following the example Mail.pb for the Mail library, it looks to me, that there is an automatically set header field "Date:" that uses the wrong time zone.
Although we now have winter with normal CET in Germany, it writes the real local time of the PC but with an +0200 that should only be used when summer time CEST is used. So the mail program like Outlook shows a one hour earlier "sent at".

Until now I've never recognized this error, but maybe until now I only tested in summer or never looked so good at it. This happens with PB 6.02, 6.12, 6.21 and 6.30 beta5 with the PB Windows x86 version on Win7, Win10 and Win11, and I tried it with different mail servers. For now I will try to set the Date header with SetMailAttribute to the correct time.

Maybe other users of different time zones or OS can check the output?

And if you think it is a bug, please move it to the bug section.

Greets, hoerbie
Fred
Administrator
Administrator
Posts: 18397
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Maybe bug: CreateMail/SendMail sets wrong Date header?

Post by Fred »

Moved for investigation, date should be UTC to avoid timezone issues I guess
hoerbie
Enthusiast
Enthusiast
Posts: 139
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Re: Maybe bug: CreateMail/SendMail sets wrong Date header?

Post by hoerbie »

Thanks for moving, and yes, I think a good way would be to use UTC in every case.

By the way, PB 6.30 Beta 5 x64/Intel on macOS 15.7.2 sets the correct local time and the timezone of CET +0100
Post Reply