Computer correct time problem on my Suse 9.2 machine? Thanks
To whom it may concern
recently we had the time change in the East coast (Move an hour forward or an hour back) and I change the time on my Suse 9.2 Linux machine to reflect the time change but every time I reboot the machine the correct time is not staying on the computer. I taught it was a problem on the bios, So I went to the bios of the machine and made sure the correct time is on the computer. The correct time is on the computer (Bios) but in Suse 9.2 linux software I'm having an hardtime keepping the correct time on the machine every time I change it. thanks - PS. Yeah, I login at the root of the machine to make the time change. ... |
Some dumb questions: Have you tried doing it from a terminal? Using the "hwclock" command?
From the hwclock man page: DESCRIPTION hwclock is a tool for accessing the Hardware Clock. You can display the current time, set the Hardware Clock to a specified time, set the Hardware Clock to the Sys_ tem Time, and set the System Time from the Hardware Clock. This should do it for you, if you haven't tried it already (apologies if you HAVE done this already ;) ) |
Try....
$ su < password > # rdate -s clock-1.cs.cmu.edu && hwclock --systohc Thats all you need.... |
thanks Brose
this is the error message I'm getting: linux:/home/2166 # rdate -s clock-1.cs.cmu.edu && hwclock --systohc bash: rdate: command not found |
thanks pnellesen
Whats command do you time in order to set the system time from Hardware Clock? thanks |
Guess you'll have to install rdate first. It mite be on you distro, if not look at google.......
|
Quote:
hwclock --set --date=newdate then hwclock --hctosys (you may be able to stick this in the first hwclock command - haven't tried myself...) An example from the man page: hwclock --set --date="9/22/96 16:45:05" Hope this helps |
thanks Pnellesen
the Hwclock command work on the root but the Time & clock in the corner of the toolbar did not change. its still the same, Do I need to reboot or what? thanks |
All times are GMT -5. The time now is 09:04 PM. |