How to fix Ubuntu with Windows dual system time out of sync

Source: Internet
Author: User
Tags local time

Guide I wonder if there are any friends like me. is Ubuntu and Windows dual system? A friend asked me today that when he restarted from the Ubuntu system to windows, he found that the time in Windows had changed, and he asked me if I could fix it. I was actually having this problem when I first started using Ubuntu and Windows dual systems. Let's explain it here.

Why there is a time lag between Ubuntu and Windows dual system

There is a time lag between Windows and Ubuntu dual system because the two systems use different ways to identify the hardware clock (Hardware clock). Ubuntu treats the hardware clock as UTC time, while Windows treats the hardware clock as local time. As time is handled differently, Windows does not change the time it recognizes Local times, no matter how many times it restarts. And when we restarted from Ubuntu to Windows, the hardware clock had been considered by Ubuntu to be UTC, and Windows was forced to convert it to Local time, which caused a time lag.

how to fix Ubuntu with Windows dual system time out of sync

To solve the fact that Ubuntu is not synchronized with Windows dual-system time is very simple, we just need to switch the UTC time of Ubuntu to Local times. The practice is to change the "utc=yes" in the /etc/default/rcs file to "utc=no" (no quotation marks). When the change is complete, Ubuntu uses the Local time instead of UTC, which resolves the dual-system issue. If you want to quickly change the configuration file, you can execute the following command directly in the terminal:

sudo sed-i ' s/utc=no/utc=yes/'/etc/default/rcs

Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/

How to fix Ubuntu with Windows dual system time out of sync

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.