How can I solve the problem of time synchronization between Ubuntu and Windows?

Source: Internet
Author: User
I don't know if any of my friends are like me in Ubuntu and Windows? Today, a friend asked me that when He restarted Ubuntu to Windows, he would find that the time in Windows had changed. He asked me if I could not fix it? In fact, I encountered this problem when I first started using Ubuntu and Windows. Let's explain it here. Ubuntu and Windows dual-system timing out issues http://www.linuxidc.c

I don't know if any of my friends are like me in Ubuntu and Windows? Today, a friend asked me that when He restarted Ubuntu to Windows, he would find that the time in Windows had changed. He asked me if I could not fix it? In fact, I encountered this problem when I first started using Ubuntu and Windows. Let's explain it here.

Ubuntu and Windows dual-system timing out issues http://www.linuxidc.com/Linux/2009-10/22089.htm

Why is there a time difference between Ubuntu and Windows?

There is a time difference between Windows and Ubuntu systems because the two systems use different methods to identify the Hardware Clock (Hardware Clock ). Ubuntu treats the hardware clock as UTC time, while Windows treats the hardware clock as Local time ). Because the time processing method is different, Windows recognizes the Local time no matter how many times it is restarted, and the time will not change. When we restart from Ubuntu to Windows, the hardware clock has been regarded as UTC by Ubuntu, and Windows forcibly converts it to Local time, which leads to a time difference.

How can I solve the problem of time synchronization between Ubuntu and Windows?

To avoid time synchronization between Ubuntu and Windows systems, we only need to switch the UTC time of Ubuntu to Local time. The specific method is to change "UTC = yes" in the/etc/default/rcS file to "UTC = no" (without quotation marks ). After the change is complete, Ubuntu uses Local time instead of UTC, which solves the problem of dual system time.

If you want to quickly change the configuration file, you can directly execute the following command in the terminal:

Sudo sed-I's/UTC = no/UTC = yes/'/etc/default/rcS

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-11/125287.htm

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.