Re: Time differs on windows 2000 and linux

sneaky56_at_gmx.net
Date: 03/17/05


Date: Thu, 17 Mar 2005 21:19:42 +0100

fritz-bayer@web.de (Fritz Bayer) writes:

> I'm running windows 2000 and linux on the same machine. The timezone
> on the machines are the same but the time differs.
>
> I have noticed that windows 2000 uses the time, which gets displayed
> in the bios and that linux adds 2 hours to it.
>
> So I think linux treats the time in the bios as UTC time and windows
> 2000 seems to treat it as local time.

What happens is the following:

1. windows only handles the case correctly where the BIOS clock is set
   to the local time

2. most unices (all?, linux included) handle the correct way, being:
   the BIOS clock is set to UTC and each and every user can choose
   what timezone his in, using the TZ env. variable.

Now, Linux also can be told to use the BIOS clock set to localtime,
instead of UTC. This setting depend on your distribution. On Debian,
you can set "UTC=no" in /etc/default/rcS. In your distribution, you
must find where "hwclock" is called during startup and then give it
the "--localtime" argument and set the BIOS clock to localtime.

        tom

-- 
as seen in a signature:
       "In an open world without walls and fences,
        who needs Gates and windows?"


Relevant Pages

  • Re: How to switch my timezone configure
    ... I am guessing your BIOS clock is set to a US timezone so is 8 hours ... Windows time to local wall-clock time or UTC. ...
    (Debian-User)
  • Re: Clock/Time issues
    ... Does this mean that I cant use the UTC option? ... You can set Linux to expect the hardware clock to contain local time ... In Windows, each user can set the update flag individually. ...
    (Fedora)
  • Re: hwclock
    ... windows time when I would boot into that OS. ... No. Linux does NOT adjust its internal clock. ... that the bios clock is also on utc. ... setup scripts) However this is problematic at DST changes since the only ...
    (comp.os.linux.misc)
  • Re: Browser: Automatische Updates
    ... die Uhr zu stellen. ... läuft meine Uhr in Windows auf UTC (auch keine automatische Umstellung ... war die Zeit unter Linux entsprechend falsch. ...
    (de.comp.security.misc)
  • Re: Fixing time zone
    ... is the BIOS clock set to UTC or local time? ... OTOH Windows expects the BIOS to be set to *local* time, ... With `dpkg-reconfigure tzdata' it came out that my local time was London, ...
    (Debian-User)