On Thu, Jul 31, 2003 at 06:59:04PM +0200, Martin Schroeder wrote:
On 2003-07-31 17:04:06 +0200, Martin Schröder wrote:
I also tried leaving out the tz information in /CreationDate by setting O to Z and leaving out the offset; but AR5 ignores any offset and interprets the time as CEST. :-(
Thanks to Thomas I think I have a solution (idea borrowed from sendmail):
void printcreationdate() { [...] char time_str[20];
too small.
[...] /* get the time zone offset */ gmt = *gmtime(&t); off = (lt.tm_hour - gmt.tm_hour) * 60 + lt.tm_min - gmt.tm_min;
Not enough, lt and gmt can be different days.
[...] }
I found the sources of exim here, where I found a similar method,
but with checking of year and day. So I have attached a new patch.
Yours sincerely
Heiko