Windows10和Ubuntu18时间不同步

一般是Ubuntu时间正常,而Windows时间晚8小时


Ubuntu系统下,在命令提示符输入:

$ sudo timedatectl set-local-rtc 1

下面更新一下时间

$ sudo apt-get install update
$ sudo ntpdate time.windows.com

将时间更新至硬件

$ sudo hwclock --localtime --systohc

重启进入Windows,发现Windows时间正常

猜你喜欢

转载自blog.csdn.net/dickwinters2011/article/details/82222466