双启动(Win 7 & Ubuntu 13.10 时钟问题

pet*_*ter 8 dual-boot

我是 Ubuntu 的“新手”,但我已经与这个问题搏斗了几个小时,似乎无法解决它:当我在 Windows(印第安纳波利斯,美国东部时区)中设置时间时然后重新启动到 Ubuntu,计算机时间进入夏威夷时间。当在 Ubuntu 中设置时间,并且计算机重新启动到 Windows 时,时间会提前 5 小时。

我在BIOS里设置了时间,好像没什么区别。我试过将时间从“自动”设置为“手动”,结果都是一样的。不是大问题,但它显示了一些潜在的故障。谁能解释一下?

Jea*_*rie 6

这是因为 Linux 将时间存储为 UTC,而 windows 存储为本地。

您可以让 Linux 使用本地时间或 Windows 使用 UTC。

要使 Linux 使用本地时间,请编辑 /etc/default/rcS 并将 UTC=yes 更改为 UTC=no

要使 Windows 使用 UTC,请使用以下内容创建一个名为 UTC.reg 的新文件:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
Run Code Online (Sandbox Code Playgroud)

并在 Windows 中使用 regedit 打开它。