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

Re: System clock malfunction



On Sun, 07 Sep 2008, Girish Kulkarni wrote:
> On Sun, Sep 7, 2008 at 9:04 PM, Andrei Popescu wrote:
> > You mean the BIOS shows the correct *local* time? In case you don't run
> > Windows on the same machine you should set it to UTC and let Debian
> > handle the time difference. Just make sure you have the right time zone
> > by running 'dpkg-reconfigure tzdata'. Otherwise you should tell it that
> > your clock is set to local time (via /etc/default/rcS).
> 
> Oh, THAT simple?! Thanks Andrei and Michael. I do have 'UTC=yes' in
> /etc/default/rcS while my BIOS shows local time (IST). I don't run any
> other system on this laptop so decided to change the BIOS time (after
> reading http://bugs.debian.org/346342).

It gets better. If your RTC is in UTC, you can remove the initscript calls
for hwclock in the S runlevel, and get a marginally faster boot, too.

Recent kernels know how to read a RTC in UTC and set the initial system time
all by itself (although you may want to test for it first: look for this in
/var/log/dmesg:  "setting system clock to").

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: