How to solve win10 and Ubuntu16.04 time synchronization problem

  • 2020-06-03 09:09:31
  • OfStack

Recently, the dual systems of windows10 and ubuntu16.04 were installed. After installation, the time of win10 and Ubuntu 16.04 was not correct, and the time zone under windows was not correct. The old way was to use the editor to open:

sudo gedit /etc/default/rcS

Change utc=yes to utc=no

However, it has no effect. ubuntu16.04 does not contain utc at all!

Then Google spent half a day and found a perfect solution:

First, update the time under ubuntu to ensure that the time is correct:

sudo apt-get install ntpdate
sudo ntpdate

Then update the time to the hardware:

sudo hwclock --localtime --systohc

Re-enter windows10 and find time back to normal!

Related articles: