Linux – Set Windows to use system clock as UTC

linuxtime zoneUbuntuutcwindows 7

While dual-booting Windows and Linux, Linux sets the system time to UTC, so Windows thinks it's midnight near mid-morning. Is there any other way to tell Windows to use UTC? I've seen the registry tweak proposed here and other places. This does not work on my computer (Windows 7 32-bit).

For reference, the registry entry is this:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

Best Answer

Linux usually uses a tool called hwclock to interface with the hardware clock. Depending on your distribution, you should be able to modify the system startup scripts to make hwclock reread and store the time using current system timezone.

In Ubuntu, you can enable local time mode by editing /etc/default/rcS to:

UTC=no

I know, not exactly what you asked for, but it does make both OSes use the same clock offset.