You can easily synchronize time of your Linux servers or desktop machines by using ntpdate command.
Open terminal and type:
server pool.ntp.orgYou can change the address of a time server (pool.ntp.org) to a different one that suits your needs.
If you don't have ntpdate installed, obtain it using the following command:
sudo apt-get install ntpThis solution is suitable for both Ubuntu and Debian.
 
                     
                     
                    