sábado, 21 de julho de 2012

Clock problem when running Windows and Linux on same computer

When you install both Windows and Linux on the same machine (using dual/multi-boot), you get into an annoying problem with the system time:

  • Linux uses the internal clock as UTC/GMT
  • Windows uses the internal clock as Local Time.
On my box, in Belgium, this currently gives a difference of 2 hours (1 hour + 1 hour for daylight saving time) between my Windows 7 and Ubuntu.  After some time, the time is corrected because the operating systems syncs its time with an NTP-server on the internet.  But after booting into the other operating system, the problem repeats itself evidently.

This problem can be solved either in Windows or in Ubuntu.  I have chosen to change the Windows configuration:
  • Start regedit.exe
  • Go to the key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
  • If it doesn't exist, add a new key (or change the existing):
    Set "RealTimeIsUniversal" as DWORD to "1"
  • Reboot
You can also solve it in Linux:
  • Open the file "/etc/default/rcS". When using a graphical shell like Unity or Gnome:
    • start a terminal window by pressing Ctrl-Alt-T
    • run "sudo gedit /etc/default/rcS" 
  • Look for the line "UTC=yes", and change it to "UTC=no"

Nenhum comentário:

Postar um comentário