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

Re: DST/ntp problems



So, there's a lot going on here.

In order for things to work, the following set of things have to agree:

/etc/localtime needs to be a symlink to the appropriate zoneinfo file (in
/usr/share/zoneinfo).

/etc/timezone also (apparently) needs to be set to the same thing as what
/etc/localtime points to.

You don't needs TZ environment variable, and in fact it can cause problems, so
I wouldn't set it anywhere.

Once you've got all of that sorted, you then need to decide if you hardware
clock is going to be set to UTC or not.  Unless you're dual booting with
Windows, set your hardware clock to UTC.  You can do this by simply editing
/etc/default/rcS, and setting UTC=yes.

Once you've done all of that, shutdown ntpd (/etc/init.d/ntp stop), and run
ntpdate to warp your clock to the correct time.  (/etc/init.d/ntpdate start).
Then, reboot once (both to test, and to write the correct UTC time into your
hardware clock).

If you're dual booting with Windows, you have to leave your hardware clock set
to local time, which means that you need to reset your hardware clock on
daylight savings time changes (or let Windows do it).

M

Attachment: pgp5qFYKW2adp.pgp
Description: PGP signature


Reply to: