[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] timezone change
- To: Petr Stehlik <joy@sophics.cz>
- Subject: Re: [MiNT] timezone change
- From: Guido Flohr <guido@freemint.de>
- Date: Mon, 3 Apr 2000 13:54:58 +0200
- Cc: MiNT mailing list <mint@fishpool.com>
- In-reply-to: <Pine.LNX.4.05.10004030953150.17787-100000@proxy.sophics>; from Petr Stehlik on Mon, Apr 03, 2000 at 09:55:07AM +0200
- Mail-followup-to: Petr Stehlik <joy@sophics.cz>, MiNT mailing list <mint@fishpool.com>
- References: <20000401140722.A84@wowee> <Pine.LNX.4.05.10004030953150.17787-100000@proxy.sophics>
- Sender: owner-mint@fishpool.com
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