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

Re: [MiNT] timezone change



> Under MiNT you can do the same: Set your real time clock
>(RTC) in UTC and

Exactly, this is what causes problems under anything else but MiNT...

> use only recent software that uses the new API.  Last
> Sunday the output of

So using the old API you'll always get UTC?

> What are the alternatives? Switch back to local time
> altogether? This

OK, what I'm going to suggest now is so incredibly simple that someone else must have had the idea but discarded it because it can't work...

1. Set the RTC to local time, MagiC and TOS is now happy.
2. Since MiNT knows which timezone we're in, calculate the UTC from localtime, and use UTC in the kernel.

In theory, this would result in correct (local) time with both the new and old API, TOS and MagiC is happy, and the kernel use UTC. So why doesn't it work?

DST is a problem though, unless MiNT corrects the RTC itself.

Jo Even Skarstein