原因
- Windows把系统硬件时间当作本地时间(Local Time),即操作系统中显示的时间和 BIOS 中显示的时间是一样的;
- macOS 则把硬件时间当作 UTC,操作系统中显示的时间是硬件时间经过换算得来的,
例如:假设 macOS 中设置了东八区时区,系统显示时间早上9:00,实际硬件储存时间就是UTC 1:00。这个时候重启进入 Windows,时间就变成了早上1:00。
解决方案
设置win将主板时间认为是utc时间或者mac认为是localtime.
- 设置win将主板时间设置为utc.
# 在cmd中输入
Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1
或者编辑一个reg文件
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
2.参考
https://heipg.cn/tutorial/solving-time-sync-problem.html