[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Z-mailer timezone oddity
> If I send outgoing mail or make a connection with the SMTP server, it
> gives me a date that looks like:
>
> Thu, 1 Aug 1996 18:43:11 +0100
>
> Our system 'date' command looks like this:
>
> Thu Aug 1 18:47:16 CDT 1996
>
> I just wonder where Z-mailer gets the +0100 from. It appears to be a
> time-zone. If so, it really should be -0500, which is CST6CDT in
> timezone terminology. Everything else is correct except for the
> timezone stuff.
Hmm... I was afraid of this..
It is due to mktime() using local timezone info, while
I THOUGHT it would not use it.. Effectively the +0100 says
that you have daylight savings time on.
... Several thoughts and tests latter ...
Now I have autoconfig test for timezonal information, and
do use it. Works at OSF/1, and Solaris 2.5.
It will report an "Aiee..." if it can't figure out the
system timezone method.
Some playings at Solaris 2.5:
784$ ./rfc822date-test
result: Fri, 2 Aug 1996 11:25:54 +0300
785$ TZ=GMT ./rfc822date-test
result: Fri, 2 Aug 1996 08:26:07 +0000
786$ TZ=CST ./rfc822date-test
result: Fri, 2 Aug 1996 08:26:19 +0000
787$ TZ=CST6DST ./rfc822date-test
result: Fri, 2 Aug 1996 03:26:25 -0500
788$ TZ=CST6 ./rfc822date-test
result: Fri, 2 Aug 1996 02:26:30 -0600
789$ echo $TZ
EET
790$ TZ=MEZ ./rfc822date-test
result: Fri, 2 Aug 1996 08:26:44 +0000
791$ TZ=MET ./rfc822date-test
result: Fri, 2 Aug 1996 10:26:55 +0200
792$ TZ=EST ./rfc822date-test
result: Fri, 2 Aug 1996 03:27:07 -0500
> Thanks for your speedy responses and I hope you slept well. :-)
>
> Roy
> rcb@press-gopher.uchicago.edu
/Matti Aarnio <mea@nic.funet.fi>