ubuntu and windows dual system time synchronization

Windows uses local time, ubuntu uses UTC time, and the time difference between the two is 8h.
First install the time synchronization tool:

sudo apt install ntpdate

Then use the time synchronization tool to synchronize the time over the Internet:

sudo ntpdate time.windows.com

Set ubuntu to local time:

sudo hwclock --localtime --systohc

After restarting, the dual system time will be synchronized!

Guess you like

Origin blog.csdn.net/justinyjf/article/details/131851104