LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Computer correct time problem on my Suse 9.2 machine? Thanks (https://www.linuxquestions.org/questions/linux-hardware-18/computer-correct-time-problem-on-my-suse-9-2-machine-thanks-315432/)

suse2166 04-20-2005 03:52 PM

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. ...

pnellesen 04-22-2005 10:37 AM

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 ;) )

BROse 04-22-2005 10:46 AM

Try....

$ su
< password >
# rdate -s clock-1.cs.cmu.edu && hwclock --systohc

Thats all you need....

suse2166 04-23-2005 08:32 AM

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

suse2166 04-23-2005 08:40 AM

thanks pnellesen

Whats command do you time in order to set the system time from Hardware Clock?

thanks

BROse 04-23-2005 10:32 AM

Guess you'll have to install rdate first. It mite be on you distro, if not look at google.......

pnellesen 04-23-2005 11:06 AM

Quote:

Originally posted by suse2166
thanks pnellesen

Whats command do you time in order to set the system time from Hardware Clock?

thanks

Something like the following:

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

suse2166 04-23-2005 11:47 AM

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.