Solutions for Windows and Ubuntu time inconsistency problems

Source: Internet
Author: User
Tags local time

Solutions for Windows and Ubuntu time inconsistency issues:

When we switch the operating system there is a problem, Windows and Ubuntu time will be inconsistent. After the time is set correctly in Windows, it is not the same time to return to the system after Ubuntu, and the time is not the same when you set the time in Ubuntu correctly and then enter Windows.

This occurs because 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 take a look at the concept of time first.

UTC, Universal Time coordinated, coordinates the worlds

GMT is Greenwich Mean time, Greenwich peacetime

Windows and Linux default to view system hardware time differently:

* Windows treats the system hardware time as local time, which means the time displayed in the operating system is the same as the time shown in the BIOS.

* Linux/unix/mac hardware time as UTC, operating system display time is the hardware time conversion, such as Beijing time is gmt+8, then the system display time is hardware time +8.

In this way, there is a problem when multiple systems coexist in the PC at the same time. If your Ubuntu and Windows settings are set in the time zone in East eight of Beijing, and you change the current system time in Ubuntu to 9:00am. Then 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 Ubuntu. Similarly, when you change or use the network to sync the system time in Windows, and then look at Ubuntu, the system will be fast for 8 hours. In areas where daylight saving time is practised, the situation may be more complicated.

In the Ubunut after the network time has not automatically adjusted, you can use the method to modify:

Let Windows take hardware time as UTC

Start-> run->cmd, open the command line program (Vista will open the command-line program as administrator to access the registry), enter the following command at the command line and return to

Reg Add hklmsystemcurrentcontrolsetcontroltimezoneinformation/v realtimeisuniversal/t reg_dword/d 1

====================================================================

UTC time is not used in Ubuntu, and local time is enabled

Edit

/etc/default/rcs

The contents of the "Utc=yes" changed to "Utc=no", save the restart system can be!

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.