Click to See Complete Forum and Search --> : Changing the Date/Time


chazbrax
01-21-2001, 11:10 AM
This probably seems so 2nd grade.. but I'm having quite a dilemma.. I change the date/time to the correct date/time... but when I restart my computer, it does weird things.. Such as jumping ahead 5 hours at a time.. or going to the correct time, but a day behind.. I don't get it.

Paul Weaver
01-21-2001, 11:13 AM
I believe the problem is that

1) you change the date and time in linux, but that doesnt change it in the bios. I think the command is sethwclock, or something similar.

2) You have selected "Hardware clock is in GMT" (on install?), and have it set to EST, or something.

Slobnak
01-21-2001, 11:20 AM
Maybe your BIOS battery is pooped ?

dasdfarmer
01-21-2001, 11:50 AM
You don't mention what distribution you are using but here is something worth looking at:
I had this problem with Mandrake 7.2. Even though I told it not to use GMT time, it did!
I fixed the problem by setting UTC=false in
/etc/sysconfig/clock
Rebooted and everything was fine.

dasdfarmer
01-21-2001, 12:09 PM
You don't mention what distribution you are using but here is something worth looking at:
I had this problem with Mandrake 7.2. Even though I told it not to use GMT time, it did!
I fixed the problem by setting UTC=false in
/etc/sysconfig/clock
Rebooted and everything was fine.

posterboy
01-21-2001, 01:23 PM
Yes, you have to set the hardware. Linux gets the hardware time and forces it into the software time on every boot. Try this:
date MMDDHHMMYYYY
That will set the software time
then
hwclock --systohc
that will force the above time into the hardware, and, perhaps, end that issue for you.
HTH, Ray

------------------
ray@raymondjones.net
HTTP://www.raymondjones.net

Honcho
01-21-2001, 07:28 PM
I've used timetool in the past and I've never have any troubles. As root type timetool. I'm not sure if the other distros have this feature but I know Redhat does.