[asterisk-users] Fix for TZ values updates for DST
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sun Mar 11 08:46:22 MST 2007
On Sun, Mar 11, 2007 at 10:37:13AM -0500, Darrick Hartman wrote:
> Until the new timezone data files are updated, you can correct the time
> on your system by using the following:
>
> Using Central Time Zone (US) as an example, in rc.conf replace
>
> TZ=CST6CDT
> with
> TZ=CST+6CDT,M3.2.0/2,M11.1.0/2
>
> EST5EDT would become
> EST+5EDT,M3.2.0/2,M11.1.0/2
>
> This is better explained here:
> http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
>
> After making the change, the easiest thing to do is reboot. That will
> re-create the /etc/TZ file (well actually /tmp/etc/TZ) on your system.
This seems to be rather specific to astlinux, or maybe more generally to
systems based on uclibc.
For standard glibc-based systems, the quick&dirty fix is to grab
/etc/localtime from an up-to-date system in the same timezone and copy
it to /etc/localtime .
I was once told that the format of the binary timezone files is quite
compatible accross different unix systems. Is that indeed the case? Can
I freely copy them around from one system to another?
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list