Linux Win 双系统时间不同步

解决Linux windows双系统时间不同步
1.Linux使用本地时间作为硬件时间
- 使用 timedatectl 命令,通过运行带有 sudo 前缀的命令,将 RTC 设置为使用本地时间
1 | sudo timedatectl set-local-rtc 1 |
- 重启系统
- 恢复更改
1 | sudo timedatectl set-local rtc 0 |
2.Windows使用UTC时间作为硬件时钟
win + r
输入regedit
打开注册表编辑器。- 转到以下位置
1 | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation |
右键单击空白处,单击新建,然后添加一个新的
Q-WORD(64位)
值条目,并将其命名为RealTimeisUniversal
。如果您使用的是 32 位 Windows 版本,则需要添加D-WORD(32 位)
值条目。添加条目后,双击它并将值设置为
1
,然后重新启动系统。