System TimeZone Setup!
2007-12-25 11:58:00
Thanks for all who replied to my question:
Ric Anderson <ric@rtd.com>
noelfdtdmc.com (Noel Fardy)
"Kard d. Vogel" <vogelke@c17.wpafb.af.mil>
mike@trdlnk.com (Michael Sullivan)
Here is my original post and the solution from Michael Sullivan:
> We're running Solaris 2.4 and we've problem with our Timezone...
>
> The variable TZ displays GMT-5, but in Sendmail it appears GMT+5
> and this affects our mail users displaying an incorrect date!
>
> The clock and the output of the date command is fine = GMT-5
> this is the equivalent to Panama
Your TZ environment variable should be set to GMT+5. Solaris 2 follows
the POSIX standard interpretation of TZ, which says the numeric value represents
hours behind GMT. If your time appears to be correct with TZ set to GMT-5, your
system clock is set wrong.
Mail headers use the opposite convention, so your correct timezone for a mail
header is GMT-0500.
P.S. Solaris 1 had a bug which reversed the meaning of the number in the GMT+/-n
TZ values; this had the misleading side-effect of making the sign in the TZ
variable match that in mail headers, which seemed nice, but was wrong.
Solaris 2 has fixed the bug, and follows the POSIX standard.
--
Wen Fung Internet Access
System Administrator Web Publishing
CyberMedia Panama http://www.pty.com
--
Wen Fung Internet Access
System Administrator Web Publishing
CyberMedia Panama http://www.pty.com
Comments
Got something to say?
You must be logged in to post a comment.

