Reprinted from Http://m.2cto.com/os/201204/126212.html Win10 and Ubuntu can also be
A couple of CentOS 5.4 and Win7 have just been installed in the previous period. Found Win7 system time is not, the machine did not surf the internet, every day, always slow 8 hours, do not know how, because of busy other things, so after a few days to find the reason, later found that Windows Time service does not automatically, so take it for granted that this reason.
Use a few times also did not find anything unusual, because today boot time did not plug the network cable, directly into the Ubuntu, found that the time is fast 8 hours, plug in the network cable on the normal, so it is not normal, so restart into the Win7, found that 8 hours slow, this just realized that may be the two system settings are different, resulting in this time problem. So Google: Two concepts: UTC is Universal time coordinated, coordinated world time GMT that Greenwich Mean times, Greenwich peacetime Windows and Mac/linux the way the system hardware is viewed by default is different : Windows treats the system hardware time as local time, which is the same as the time shown in the B iOS in the operating system. Www.2cto.com Linux/unix/mac the hardware time as UTC, the operating system display time is the hardware time after conversion, such as Beijing time is gmt+8, then the system display time is hardware time +8. In this way, there is a problem when multiple systems coexist in the PC at the same time.
If your Linux set time zone is the Beijing time East Eight area, the current system time is 9:00am. Then the actual UTC time 1:00am is stored in the hardware. When you reboot into Windows, you will find that the time displayed in the Windows system is 1:00am, eight hours slower than Linux. Similarly, when you change or use the network to sync the system time in Windows, and then look at Linux, the system will be fast for 8 hours. In areas where daylight saving time is practised, the situation may be more complicated.
Ways to solve this problem:
1. Allows Ubuntu to stay in line with Windows without using UTC time. Ubuntu turns on UTC by default, which is coordinated with the world, and Win7 is using this timing, which results in a difference between windows and Ubuntu time calculations you can use the following methods to get the same time: sudo gedit/etc/default/rcs Find this line: Utc=yes www.2cto.com change Yes to No in Fedora (I am Fedora 13), once open system–>administration–> Date & Time Removes the tick in front of system clock uses UTC under the Time Zone tab to determine. A few minutes of system time is normal.
2. Modify the way Windows treats hardware time so that you do not have to set it on Ubuntu until you modify it on Windows. Let Windows start the hardware time as UTC-> run->cmd, open the command line program (Vista will open the command-line program as administrator to access the registry), enter the following command at the command line and return code: REG Add Hklm\system \currentcontrolset\control\timezoneinformation/v realtimeisuniversal/t reg_dword/d 1 Author EnchanterBlue The problem is primarily UTC 。 Mine is Ubuntu 16.04 and win10, use (and only use) the second approach to smooth out, do not need to use the first method.