kaixuan1115 / notes

笔记收录
6 stars 0 forks source link

OS X与Windows时间不同步解决办法 #14

Closed xiaokaixuan closed 5 years ago

xiaokaixuan commented 5 years ago

Windows把系统硬件时间当作本地时间(local time),即操作系统中显示的时间跟BIOS/EFI中显示的时间是一样的。 OS X把硬件时间当作UTC,操作系统中显示的时间是硬件时间经过换算得来的,比如说北京时间是GMT+8,则系统中显示时间是硬件时间+8。

两种办法

  1. 注册表 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\中添加一项数据类型为REG_DWORD,名称为RealTimeIsUniversal,值设为1。
    REG add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1
  2. 在OS X下搜索安装补丁包Localtime-Toggle.pkg可解决此问题(推荐办法一,办法二尚未测试)。