Windows 和 Linux 时间不同步的问题 (Sync time between Linux and Windows)

Linux 认为CMOS里存储的时间是UTC+0 ,然后系统中存储了时区信息,通过这两个值,生成当地时间。
Linux treat the Time saved in CMOS as the UTC+0, after calculating with the TimeZone info in system, you get the local time.

Windows 认为CMOS里存储的就是本地时区的时间。于是双系统的同学总是有8小时穿越的神奇经历。
Windows treat the Time saved in CMOS as local time. So those who have dual or more systems would find time shifting after rebooting from another system.

解决方法是让Windows也把CMOS里存储的时间作为UTC+0,修改方法是新建注册表键值:
Solution is to set Windows treating the CMOS time as UTC+0. Create a key in regedit,

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal

类型设置为DWORD,值设置为1.
Type set as DWORD and value as 1.

MSDN的原文在这里
You can check the description on MSDN here.

Windows 和 Linux 时间不同步的问题 (Sync time between Linux and Windows)》上有 5 条评论

  1. Excellent blog right here! Additionally your site so much up very fast!
    What web host are you the use of? Can I get your associate hyperlink for
    your host? I want my site loaded up as fast as yours lol

发表评论

电子邮件地址不会被公开。

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>