System time issues when Ubuntu and Windows coexist

Source: Internet
Author: User
Tags time zones

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

Related Article

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.