I use CentOS, and for some reason, one of the servers I bought (amongst a network of other servers I do not own) is off by one hour. The time is one hour ahead no matter what time zone I set it to.

[root@adventurelobbies5 ~]# mv /etc/localtime /etc/localtime.bak
[root@adventurelobbies5 ~]# ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
[root@adventurelobbies5 ~]# date
Mon May 14 18:24:23 EDT 2012

Right now, it's actually Mon May 14 17:24:23 EDT 2012

Any ideas? I've heard things about setting the hardware clock? I'm not sure if I have access to that as this is a VPS.

migrated from stackoverflow.com May 15 '12 at 18:55

This question came from our site for professional and enthusiast programmers.

  • Have you issued a ntpdate to a public ntp server? – ChristopheD May 14 '12 at 21:35
  • @ChristopheD Not sure I am following. – Gray Adams May 14 '12 at 21:48
  • you use ntpdate to pull time off of an ntp server – alexmherrmann May 14 '12 at 23:45
  • I don't have permission to run it. – Gray Adams May 15 '12 at 0:20
  • 1
    @ChristopheD Why don't you leave an answer that explains the situation? Clearly Gray is looking for any info, so just tell him what you'd do to improve the situation and why you think it would work. – jerclarke Oct 2 '14 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.