On Sat, 3 Mar 2001, Keith Wright wrote:
Date: Sat, 3 Mar 2001 20:50:27 -0500 From: Keith Wright <kwright@gis.net> Reply-To: wlug@mail.wlug.org To: wlug@mail.wlug.org Subject: Re: [Wlug] Set Date/Time
From: "Peter Nikolla" <petern@hvnnet.com>
Hi,
I am having a problem setting the date/time on my Linux box.
I set it using date 030310152001 for 3/3/2001 10:15. Everyting seems fine until I reboot the box. At that time it changes to some other time. I checked my CMOS and the time is correct. What am I doing wrong?
Check /etc/adjtime and if it has big numbers in it, delete it. Read "man hwclock" to understand why.
-- -- Keith Wright <kwright@free-comp-shop.com>
Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com> --- Food, Shelter, Source code. --- _______________________________________________ <snip>
I'm not sure that's the right approach. The adjtime file needs a rational setting, which it gets by noting the drift in hwclock time v. "real" time, which assumes that the real (system) time is accurate (nntp service?). This may help... 1. Get you system time set correctly. 2. run hwclock --systohc --utc (you determine if the --utc is right for you. 3. Wait a day or 2 while you system is still up. Don't reboot. 4. Check you system time & make sure it's right. 5. Do step #2 again. Any hwclock time drift will be reflected in the adjtime file. Bill