Resolving windows and Ubuntu dual system time synchronization problems

Source: Internet
Author: User

Ubuntu and Windows default time management differently, so it's normal to have a dual-system time disorder. Ubuntu default time is to take the BIOS time as gmt+0 time, which is the world standard, while our country is in the East Eight area (gmt+8), so if your Ubuntu location is China, your system display time is the BIOS time + 8 hours. If it's 8 in the morning, then you'll have 8 in Ubuntu, and the time in the BIOS is 0.

And when you switch to the Windows system there will be time confusion, because Windows will think that the BIOS time is your local time, the result is that Windows display time is 0 points ... And if you sync time in Windows, restore to display 8 points, then the BIOS time will be rewritten by Windows to 8 points, once again into the Ubuntu display time has become a 8+8=16 point ...

There are two solutions, one for Windows to use Ubuntu for time management, the other is to enable UTC (Coordinated world time) and the other is to let Ubuntu manage time in Windows mode, which is to disable Ubuntu (World coordinated). The second type of personal advice, because Windows is usually the primary system, does not recommend this modification to Windows, but I would like to introduce:

To enable UTC under Windows

Open the Run window (shortcut key Win+r), and then enter Regedit to start Registry Editor and locate the directory location:

hkey_local_machine/system/currentcontrolset/control/timezoneinformation/

Add a key value of type REG_DWORD, named Realtimeisuniversal, with a value of 1 and then back to normal after reboot.

To turn off UTC under Ubuntu

This method is recommended by me: Press Ctrl+alt+t to pull out the terminal, enter:

sudo gedit/etc/default/rcs

Press Ctrl+f to find, find Utc=yes this line, change to Utc=no, save can, time changes immediately effective. This will solve the windows and Ubuntu dual system time synchronization problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.