[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: local timezone question
On Sat, Sep 05, 1998 at 05:39:17PM -0700, Stanislav Malyshev a.k.a Frodo wrote:
> All zoneinfo packages think that summer time (IDT) will continue up to
> October (I've seen 17, 24 etc.).
There were several educated guesses. They missed.
> First of all, how do I make it know that we've already on IST?
You can fetch the tz package via ftp from elsie.nci.nih.gov (in /pub). You
need 'tzcode*' and 'tzdata*'. The tz package contains all required
information for a system to correctly support time around the world,
including accurate information for Israel.
Note that you'd want to install it in whatever directory it is now
(/usr/lib/zoneinfo, possibly), such that you wouldn't need to recompile
utilities such as 'date' (that hardcode the location of the zoneinfo files).
> Second, is
> there a way to do it automatically (via some central server) - since our
> government seems to be very reluctant to establish solid summer/winter
> time rules, and even twice a year to run over all servers and update time
> is too much for me.
It should be straight forward to write a script to achieve that. The
tzdata archive is rather small (100k), and fetching it every few weeks
automatically shouldn't pose any limitations. There might even be better
ways - maybe that ftp above contains some other infomration that can help
identifying new information in the archive.
Assuming the compiled zoneinfo files are portable among platforms, all you'd
need to do is get the archive, extract the 'asia' file, compile it using zic,
and distribute the compiled file to the other systems.
Nimrod