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

Re: time screwed up

Nori Heikkinen said on Thu, Jun 19, 2003 at 04:04:35PM -0400:
> i just reinstalled my system, and now the time is screwed up.  it's
> right now 17:02 EDT.  set for the US/Eastern time zone, my computer
> thinks it's 9 AM, and that UTC is 13:00.  i can change the time zone,
> but it's not the zone that's wrong, it's what it thinks UTC is.  how
> do i change this?

Do this:

Edit /etc/default/rcS

Make sure that UTC=yes.

Install ntpdate.

Enter a valid public NTP server.

Run /etc/init.d/ntpdate start.

This will force your clock to the correct UTC time.  The next time you
shutdown, your hardware clock will get updated also.

Note: if you're dualbooting with Windows, make sure that UTC=no, 'cause Windows
stores the time in the hardware clock in localtime, not UTC.

Note2: you don't _have_ to use ntpdate... you can use date to set the time by


Attachment: pgpqcEUUusDr0.pgp
Description: PGP signature

Reply to: