How can I permanently fix my date synchronize problem in linux?
The advice about running ntpdate is good, but it'll only step your time. A better option is to install ntpd and use it to keep the local clock synchronised, avoiding skewed logs.
With Ubuntu you should just be able to do apt-get install ntp
. That should install ntpdate and ntpd, configure them to use ntp.ubuntu.com
as the only server and synchronise time. For completeness you'll want to add other NTP servers (eg 0.pool.ntp.org
, 1.pool.ntp.org
and 2.pool.ntp.org
).
I had the same problem yesterday but under Slackware 8. To make a long story short, I read a lot on google to finally reimage the computer. My manager sent me that link but it did not fixed my issue.
I changed the local to UTC time. I changed the timezome to have the good one I ln both.
Hope this will help you!
Also, you can try this:
ntpdate 0.pool.ntp.org
hwclock --systohc