ubuntu 18.04//18.10&&windows 7/10双系统系统时间不一致

新版本的Ubuntu使用systemd启动之后,时间也改成了由timedatectl来管理,因此网上的许多方法就不适用了。

经过测试发现下面的方法可以解决双系统时间不一致问题:

1、将硬件时间UTC改为CST,双系统时间保持一致。

$sudo timedatectl set-local-rtc 1

重启。

2、先在ubuntu下更新一下时间,确保时间无误:

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

3、然后将时间更新到硬件上:

$sudo hwclock --localtime --systohc

重新进入windows系统,发现时间恢复正常了!

猜你喜欢

转载自www.cnblogs.com/darklights/p/10257350.html