-   Slackware (
-   -   set system time (

xushi 03-31-2005 08:28 AM

set system time
I don't know much about clocks.. but in xfce, and when i type clock, or date, i get
Thu 31 Mar 2005 01:21:45 PM BST -0.866873 seconds

when its supposed to be 2:21.
Thu Mar 31 13:27:00 BST 2005

My system's time didn't change with the summer/winter timechange last week.

If i manually set the clock, reboot, it goes back to the wrong time again. How can i correctly fix this problem?

keefaz 03-31-2005 08:37 AM

For my part I have a cron for root that set the time everyday at 21:00

0 21 * * * /usr/sbin/ntpdate 1> /dev/null 2> /dev/null

(I set the time server to here as I see you are in UK)
for more servers

Could you post the output with :
ls -l /etc/localtime-copied-from

masonm 03-31-2005 09:31 AM

Sounds like a problem with the hardware clock or you have the wronf locale set for localtime.

Nobber 03-31-2005 09:56 AM

Sounds as if you need to run timeconfig. That should correctly set up /etc/hardwareclock and /etc/localtime.

On my machine, /etc/hardwareclock contains the line:


(indicating that my hardware clock is set to UTC - as it should be), and /etc/localtime is a copy of /usr/share/zoneinfo/Europe/London (I'm in the UK too).

All times are GMT -5. The time now is 12:33 AM.