[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] timezone change
On 2000-3-30, Guido Flohr <guido@freemint.de> wrote:
> reads the time from the RTC. In UTC clock mode it corrects
> the RTC time to calculate localtime, in localtime clock mode
> it corrects the RTC to calculate UTC.
Corrects, as in changes the RTC time?
If you mean that it offsets its time in regards to the RTC (or
better yet, considers the RTC as residing in the user's TZ - as
it should), that's different.
> The reason is simple: The kernel may or may not know by how much UTC and
> local time differ /now/ but it has no idea about the offset that was in
> use when creating the timestamp.
Nor should it need to know. It was created on date:time of an
unspecified zone, just like GEMDOS.
> If a DST change has taken place recently, how could the daemon
> know if it has already reported the change to the RTC?
No application should touch the RTC without human intervention.
> Anyway, does anybody really care about these two extra
> reboots per year?
When you are there to handle it manually, at the right time (if
you happen to remember to do it), sure, that's not a problem.
--
Martin-Éric Racine http://funkyware.atari.org/ Atari TT030 FAQ
Lappeenranta, Finland. Surfing on a Intel/Microsoft-free GEM OS