Caj*_*uke 5 linux windows-7 time-zone utc ubuntu
在双启动 Windows 和 Linux 时,Linux 将系统时间设置为 UTC,因此 Windows 认为现在是接近中午的午夜。有没有其他方法可以告诉 Windows 使用 UTC?我已经看到这里和其他地方提出的注册表调整。这在我的计算机(Windows 7 32 位)上不起作用。
作为参考,注册表项是这样的:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
Run Code Online (Sandbox Code Playgroud)
Linux 通常使用一个名为 的工具hwclock
来与硬件时钟进行交互。根据您的发行版,您应该能够修改系统启动脚本以hwclock
使用当前系统时区重新读取和存储时间。
在 Ubuntu 中,您可以通过编辑/etc/default/rcS
以下内容来启用本地时间模式:
UTC=no
Run Code Online (Sandbox Code Playgroud)
我知道,不完全是您所要求的,但它确实使两个操作系统使用相同的时钟偏移。