What the editor wants to share with you here is about solving the time synchronization problem between Linux and Windows dual systems. Under dual computer systems, we found a problem when using Linux and Windows systems, which is the time synchronization problem (UTC&localtime). Linux uses UTC, but Windows uses localtime by default, so how to solve the problem? Let’s take a look!
1. First enter windows and use regedit to write the DWORD value (set to hexadecimal "1"):
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformationRealTimeIsUniversal
2. XP and Windows Vista SP1 support setting the system time standard to UTC, but the system will be reset to localtime during hibernation and standby. This is a bug. It is recommended that these operating systems be set to localtime;
3. If Windows requires the clock to be updated according to daylight saving time, it can be allowed. The clock is still in UTC, only the displayed time will change;
4. After setting the time standard, you need to reset the hardware time and system time. It is best to disable the time synchronization function of Windows, otherwise the hardware time may be confused.
The above is the detailed content of How to solve the time synchronization between Linux and Windows dual systems. For more information, please follow other related articles on the PHP Chinese website!