Home  >  Article  >  System Tutorial  >  The best solution to solve the Linux and Windows dual-boot time synchronization problem

The best solution to solve the Linux and Windows dual-boot time synchronization problem

王林
王林forward
2024-01-04 22:24:39836browse

If you want to try other Linux distributions while retaining the Windows system, dual booting is a common practice. This method is so popular because dual-booting is easy. However, this also brings about a big problem, and that is time.

Yes, you read that right. If you just use one operating system, time synchronization will not be a problem. However, if there are two systems, Windows and Linux, there may be time synchronization problems. Linux uses Greenwich Mean Time while Windows uses local time. When you switch from Linux to Windows or from Windows to Linux, the wrong time may be displayed.

But don’t worry, this problem is easy to solve.

Click on the Start menu in Windows and search for regedit.

完美解决 Linux 和 Windows 双启动带来的时间同步问题

open regedit in windows 10

Click to open, and then you will see the content under Type. This is the Registry Editor.

完美解决 Linux 和 Windows 双启动带来的时间同步问题

windows 10 registry editor

In the navigation menu on the left, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation.

In the right window, right-click a blank location and select New >> DWORD(32 bit) Value.

完美解决 Linux 和 Windows 双启动带来的时间同步问题

change time format utc from windows registry

After that, you will generate a new entry, and this entry will be highlighted by default. Rename this entry to RealTimeIsUniversal and set the value to 1.

完美解决 Linux 和 Windows 双启动带来的时间同步问题

set universal time utc in windows

All configurations are completed. Next time you restart, there will be no time synchronization problems.

The above is the detailed content of The best solution to solve the Linux and Windows dual-boot time synchronization problem. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete