[haiku-commits] Re: r41957 - haiku/trunk/src/preferences/time

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 7 Jun 2011 22:49:34 +0200 (CEST)

----- "Rene Gollent" <anevilyak@xxxxxxxxx> a écrit :

> The problem remains (which is the whole premise of that setting to
> begin with) that the BIOS time doesn't contain timezone information
> so
> you have no way of knowing if it's a local time or a UTC time.
> Windows
> usually stores the BIOS time as local, whereas the *nixes prefer to
> store it as UTC and offset it on the fly instead, which is part of
> the
> reason BeOS (and Haiku) had that setting, in order to more easily be
> compatible with whatever other OSes we're coexisting with. Even if
> you
> pick the correct timezone in the installer, you still don't know if
> the time that's in the BIOS is already in that TZ, or if it should be
> treated as UTC and offset by whatever TZ you just picked.

Several schemes could be used to determine this, like comparing with ntp,
and geolocalizing the assigned IP for ex.
DMI has informations on BIOS languages/countries that could be used also...

Not sure it's worth it though.


Other related posts: