[SOLVED] Clock 4 minutes behind actual time on CentOS 6.4
Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to set the clock for New York Eastern time but I'm having an issue with my localtime on CentOS 6.4. I have tried linking both /usr/share/zoneinfo/US/Eastern & /usr/share/zoneinfo/America/New_York to the file "/etc/localtime" but whenever I do a 'date' command it still shows the time as 4 minutes behind. I also edited my /etc/sysconfig/clock file to represent ZONE="America/New_York". When I perform these steps in RHEL 6.4 there is no problem. Is this a bug or am I doing something wrong?
If it was a timezone problem then typically the hours would be off vs minutes.
As suggested ntp might not be running or configured correctly but you have not provided enough information to determine what is happening? Is this a physical or virtual machine? Is it connected to the internet?
Is ntp running? Are there any ntp errors in /var/log/messages?
I checked the ntpd daemon and it is not running.. Also there are no ntp errors in /var/log/messages. Do I need to set an ntp server? then set the hardware clock to the current system time?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.