First, we need to understand two concepts:
Universal time coordinated
GMT is greenwich mean time, greenwich mean time
By default, windows and mac/linux have different ways of viewing the system hardware time:
Windows treats the system hardware time as local time, that is, the time displayed in the operating system is the same as the time displayed in the bios.
Linux/unix/mac uses the hardware time as utc, and the time displayed in the operating system is converted by the hardware time. For example, Beijing time is gmt 8, the time displayed in the system is hardware time 8.
In this way, a problem occurs when multiple systems coexist in the pc. Assume that all the time zones configured for ubuntu are UTC + 8 (Beijing Time). The current system time is am. In this case, the hardware actually stores the utc
Time am. After you restart windows, you will find that the time displayed in windows is
Am, eight hours slower than ubuntu. Similarly, after you change the system time in windows or use the network to synchronize the system time, and then go to ubuntu to see it, the system will be 8 hours faster. The situation may be more complex in the region where renewal is implemented.
To solve this problem, ensure that ubuntu does not use utc time in the same way as windows does. By default, utc is enabled for ubuntu, that is, Coordinated Universal Time, while win7 uses this timing method. This results in a time difference between windows and ubuntu. You can use the following method to get the same time:
Sudo gedit/etc/default/rcs
Find this line: Change utc = yes to no
This article is from my website blog