When you switch the operating system, you will find a problem, Windows and Ubuntu time will appear inconsistent. After setting the time correctly in Windows, the time to go back to the system in Ubuntu is different, and when you set the time correctly in Ubuntu, you get into Windows, and the time is inconsistent.
The reason for this is that Windows and Ubuntu have different ways of looking at hardware time by default (the time that Bois on the motherboard is displayed). Knowing the cause of the problem, we will solve the problem.
This is a question about time, so let's start with the concept of time.
UTC is Universal time coordinated, reconciling the time
GMT is Greenwich Mean time, Greenwich Normal
Windows and Linux default to the way the system hardware time is different:
* Windows treats system hardware time as local time, that is, the time displayed in the operating system is the same as the time shown in the BIOS.
* Linux/unix/mac hardware time as UTC, the operating system display time is the hardware time after conversion, for example, Beijing time is gmt+8, the system display time is hardware time +8.
In this way, there is a problem when multiple systems coexist in the PC. If your Ubuntu and Windows are set in time zone eight in the east of Beijing, and you change the current system time to 9:00am in Ubuntu. The actual c time stored in the hardware is 1:00am. When you reboot into Windows, you will find The time displayed in the Windows system is 1:00am, which is eight hours slower than in Ubuntu. Similarly, after you change in Windows or synchronize the system time with the network, and then go to Ubuntu to see, the system will be 8 hours faster. In areas where daylight saving time is practiced, the situation may be more complicated.
After the ubunut under the network time has not been automatically adjusted, can be modified by the method:
Let Windows take hardware time as UTC
Start and run->cmd, open the command-line program (Vista will open the command-line program as an administrator to have access to the registry), enter the following command on the command line and return
Reg Add hklm\system\currentcontrolset\control\timezoneinformation/v realtimeisuniversal/t reg_dword/d 1
====================================================================
UTC time is not used in Ubuntu and local time is enabled
Edit
/etc/default/rcs
Change the content "Utc=yes" to "Utc=no", and then restart the system after saving to
"Reprint" solves the problem of inconsistent windows and Ubuntu time