I have Ubuntu 16.04 and Windows 10 Enterprise LTSB with dual boot. I have problem with the hour that Ubuntu and Windows provides me. If I change the hour in Windows for put the real one (20:37 for example) in Ubuntu says that it's 20:37. If I change it in Ubuntu, in Windows will say that it's 22:37. How can I fix it? Thanks!
Turn off set time automatically for windows 10 and apply UTC reg fix: Using regedit, add a DWORD value with hexadecimal value 1 to the registry: Code: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal You can do this from an Administrator Command Prompt running: Code: reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f Alternatively, create a *.reg file (on the desktop) with the following content and double-click it to import it into registry: Code: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] "RealTimeIsUniversal"=dword:00000001 Then you can set the correct time in Ubuntu. Also you should turn off fast shutdown in windows 10 to avoid missing data with dualboot
Another approach: You can set the hardware clock time standard in the Linux distribution. You can check what you have set to use by: Code: $ timedatectl | grep local The hardware clock can be queried and set with the timedatectl command. To change the hardware clock time standard to localtime, use: Code: $ timedatectl set-local-rtc 1 If you want to revert to the hardware clock being in UTC, do: Code: $ timedatectl set-local-rtc 0
I suggest to use the answer provided by Tito rather than the Registry tweak. I had issues with that tweak in the past.Unfortunately, I don't remember which exactly. Also, if you will re-install Windows, you need no tweak it again. It will just work. In my dualboot system, it also configured Linux that the hardware clock is in local time.
My question is completley unrelated to linux . He said he had issues. Just interessted in maybe which direction.
Read the arch linux link ^^ there's a section dedicated to windows, and further links explaining the the feature was buggy and unsupported on older windows flavours.
For issues. I was running Windows 7 that time, maybe I am wrong, but I think I was getting incorrect time in Windows even after the tweak. It was changed from time to time. So settings Linux considering hardware clock as local time clock is reliable solution. I live with without a single issue.
To be precise unix use the UTC since the stone age, DOS and Windows, as usual, introduced a non standard behavior. So technically is a Windows thingy. Windows has the bad behavior that should be fixed. Practically solve the problem from the linux side is easier and well proven, while doing it on windows is not.
My solution for this issue is to make Linux use 'Local' time. To tell your Ubuntu system that the hardware clock is set to 'local' time: sudo gedit /etc/default/rcS add or change the following section #Set UTC=yes if your hardware clock is set to UTC (GMT) UTC=no
This fixed no longer works with Ubuntu 16.10 "Yakkety". Tried the 'rcS' set to UTC=no. Still fails. You need to use the Windows registry fix and leave Ubuntu on UTC. I have a bug reported, but no response. I find it works best leaving timedatectl alone, and using Windows fix.
Ubuntu 16.04 works when dual-booting with Code: timedatectl set-local-rtc 1 And LTS is the one that matters, to me.
@Tito I tried to use the commands again in Ubuntu 17.04 and it doesn't work. Is there any new fix? Thanks
@antonio8909 I've setup couple of VMs as well real PCs with Ubuntu 17.04 along Windows - no issue with the above one.