LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   set system time (http://www.linuxquestions.org/questions/slackware-14/set-system-time-308175/)

xushi 03-31-2005 07: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 07:37 AM

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

0 21 * * * /usr/sbin/ntpdate uk.pool.ntp.org 1> /dev/null 2> /dev/null

(I set the time server to uk.pool.ntp.org here as I see you are in UK)
See http://ntp.isc.org/bin/view/Servers/NTPPoolServers
for more servers

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

masonm 03-31-2005 08:31 AM

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

Nobber 03-31-2005 08: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:

UTC

(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:29 AM.