[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] timezone change



Hi,

On Mon, Apr 03, 2000 at 09:55:07AM +0200, Petr Stehlik wrote:
> > The drawback of a localtime kernel clock is however, that the system clock
> > will take a leap as soon as you inform the kernel about the timezone in
> > use.  Jörg's current timezone is CEST-2.  When he boots at six o'clock the
> > kernel will think at boot time that it is 6:00 UTC.  Then he runs tzinit,
> > sets the timezone CEST-2 and the kernel realizes that it is really 4:00
> > UTC.  All timestamps written between system start up and that clock warp
> > will be wrong.
> 
> So what about moving the tzinit functionality into kernel and configure it
> from MINT.CNF? Then there would be no timestamps written because the
> MINT.CNF is (hopefully) evaluted first.

This would make the kernel a lot bigger.  Have a look at the code in tz.c
in the MiNTLib.  You would have to enable the kernel to evaluate the
timezone database and that is a lot of stuff.

Ciao

Guido
-- 
http://stud.uni-sb.de/~gufl0000/
Send your spam to president@whitehouse.gov and your replies to
mailto:guido at freemint dot de