[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] Date time zone information
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] Date time zone information |
Date: |
Fri, 12 May 2006 08:49:46 EEST |
djh <address@hidden> wrote:
> From: "djh" <address@hidden>
> Date: Fri, 12 May 2006 14:19:41
The Date value is not RFC-2822 compliant, it is missing time zone field.
djh <address@hidden> wrote:
> I tested this with GNU MH's comp program and no +9:00 is added to the
> date, which is what I need in my location.
Comp has nothing to do with that, 'Date' field is added by send.
> Do any of you know how to add this timezone information that will work
> globally?
Here is a snippet of code from send.c, which is responsible for
generating the header:
char date[80];
time_t t = time (NULL);
struct tm *tm = localtime (&t);
mu_strftime (date, sizeof date, "%a, %d %b %Y %H:%M:%S %Z", tm);
mu_header_set_value (hdr, MU_HEADER_DATE, date, 1);
So, there are three possibilities:
1. Struct tm does not carry any information about time zone.
2. The localtime call malfunctions and does not set time zone
information in struct tm.
3. The strftime call does not support %Z.
Regards,
Sergey