Quick tip! If you’re using virtual machines to develop and test your web applications, you probably use the “save state/snapshot” feature instead of turning it off and on every time. I noticed after a while that my time was out of sync (a few weeks late) which caused a bunch of problems. Luckily, I found this simple command:
sudo ntpdate ntp.ubuntu.com
It will sync your time with the Ubuntu Time server. You can even add a cron entry as suggested by this article. To display the current time and date, simply type date. Hope this helps :)
[…] Source: Sync Time and Date in Ubuntu Linux by Konstantin Kovshenin Share and Enjoy: […]