Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-09-2007, 10:07 AM   #1
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
System clock off

I have a system where the clock is 7 hours behind for some reason. The BIOS clock is right and ntpd is up and running. Anyone have any idea why it is beind/wrong?

Old 11-09-2007, 10:21 AM   #2
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,342

Rep: Reputation: 6040Reputation: 6040Reputation: 6040Reputation: 6040Reputation: 6040Reputation: 6040Reputation: 6040Reputation: 6040Reputation: 6040Reputation: 6040Reputation: 6040
Time zone might be set incorrectly. I'd also check the NTP source where you're getting your time synchronization. Run an ntptrace at the command line, and it will return something like:

localhost: stratum 2, offset -0.040649, synch distance 0.129422 stratum 1, offset 0.004651, synch distance 0.023137, refid 'GPS'

This shows my workstation being a stratum 2 clock, synced to the stratum 1 clock from one of my main time servers. If the clock is too far behind when NTP is started, it will 'step' the local clock into synch. The quick and dirty way to get things there is to stop the NTP daemon, then run "ntpdate <FQDN or IP address of accurate time server>", which will sync the clock immediately. Do that a couple of times, then restart NTP, and it should keep in sync from then on.

Take a look at the hwclock command too....
Old 11-09-2007, 11:01 AM   #3
Registered: Oct 2007
Distribution: rhel, fedora, gentoo, ubuntu, freebsd
Posts: 104

Rep: Reputation: 16
You're in Mountain Time, correct? That's GMT -7. If the system is 7 hours behind, then you are probably telling the timezone that the system's using utc when it's getting a local time. If you're 7 hours ahead, then your system probably thinks it's in Greenwich or thereabouts, and you need to tell it to use the correct timezone.

Afaik, on fedora you'd be looking for either the /etc/sysconfig/clock config file or the system-config-clock utility to tweak that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 08:19 PM
Failed to set system clock to hardware clock jrtayloriv Linux - Newbie 2 09-25-2008 08:06 AM
Desktop clock not synced with system clock greenphreak Debian 5 08-22-2007 02:32 PM
Slow system clock and stray hardware clock, pleas help! Epox Linux - General 6 01-02-2007 03:43 PM
system clock vs. CMOS clock dtamajka Linux - General 7 12-11-2003 06:56 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration