Maybe bug: CreateMail/SendMail sets wrong Date header?
Posted: Thu Dec 11, 2025 2:22 pm
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
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