解决 Linux 与 Windows 系统时间不同步的问题
问题原因:Linux 存贮时间使用的是 UTC 时间戳,而 Windows 使用的是当地时间,所以在世界大部分地区会产生读取差异。(在中国会导致 Windows 与 Linux 的时间差八个小时)
解决方式:把 Windows 调为使用 UTC 时间戳,方法为以管理员权限运行CMD,输入
Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1
后重启即可
评论
发表评论