Opened 15 years ago

Closed 15 years ago

Last modified 9 years ago

#158 closed defect (fixed)

Samhain uses obsolete timezone format for date headers in emails

Reported by: rainer Owned by: rainer
Priority: major Milestone: 2.5.7
Component: main Version:
Keywords: Cc:

Description

NP reports the following problem:

I was hoping this would fix a problem I'm having with email timestamps but it hasn't. The timestamps in the body of the message are correct but time shown for when the message was received is incorrect. For example, I have a message from this morning at 08:39 which has:

-----BEGIN MESSAGE-----
[2008-12-04T08:39:32+1000]

Which is correct, but my email client reports the message as being received at 11:39 PM - 15 hours ahead.

As a possible cause, TimB suggest this:

I think I may know why this happens. Samhain email Date headers
seem to use the 'obsolete' form of time-zone info e.g.

Date: Wed, 15 Jul 2009 08:13:45 EST

Unfortunately (see RFC 2822 Sec 4.3) the timezone EST has
a hard-coded meaning to be GMT -0500, whereas EST is also
used for the Australian east-coast timezone (GMT +1000)
which is where your Samhain email client is located.
Hence the 15 hour discrepancy.

Change History (1)

comment:1 by rainer, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in changeset [238] - added an autoconf macro to check whether strftime supports %z. If yes, use it to print time-zone as hour offset from GMT.

Note: See TracTickets for help on using tickets.