> for some reason my boss wants the time sent/time recieved and whathaveyou
> in our emails to appear as:
>
> 2-oct-2000 23:42 GMT
>
> not
>
> 2-oct-2000 11:42 PM
>
> does that get generated by sqwebmail (rfc822_mkdate.c ?) or is it qmail
> that does that bit??

Actually, rfc822 states:

date-time   =  [ day "," ] date time        ; dd mm yy
                                            ;  hh:mm:ss zzz

day         =  "Mon"  / "Tue" /  "Wed"  / "Thu"
            /  "Fri"  / "Sat" /  "Sun"

date        =  1*2DIGIT month 2DIGIT        ; day month year
                                            ;  e.g. 20 Jun 82

month       =  "Jan"  /  "Feb" /  "Mar"  /  "Apr"
            /  "May"  /  "Jun" /  "Jul"  /  "Aug"
            /  "Sep"  /  "Oct" /  "Nov"  /  "Dec"

time        =  hour zone                    ; ANSI and Military

hour        =  2DIGIT ":" 2DIGIT [":" 2DIGIT]
                                            ; 00:00:00 - 23:59:59

zone        =  "UT"  / "GMT"                ; Universal Time
                                            ; North American : UT
            /  "EST" / "EDT"                ;  Eastern:  - 5/ - 4
            /  "CST" / "CDT"                ;  Central:  - 6/ - 5
            /  "MST" / "MDT"                ;  Mountain: - 7/ - 6
            /  "PST" / "PDT"                ;  Pacific:  - 8/ - 7
            /  1ALPHA                       ; Military: Z = UT;
                                            ;  A:-1; (J not used)
                                            ;  M:-12; N:+1; Y:+12
            / ( ("+" / "-") 4DIGIT )        ; Local differential
                                            ;  hours+min. (HHMM)

So unless the rfc has been superceded (which I'm not aware of), the existing
format is wrong (as are any implementations that use other codes for zone,
such as CEST or AKDT).

======================================================================
// Chris Giard (a.k.a. Slyglif Cain) | Life is like a box of dynamite,
// EMAIL: [EMAIL PROTECTED]       | you never know when it will go.

Reply via email to