原因
- 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