Setting method to disable utc time under ubuntu system

  • 2020-06-03 09:08:51
  • OfStack


After installing the dual systems, we found that after entering the win7 and ubuntu systems, the display time was not identical. Later, it was found that the two systems had different views on hardware time

Here's why

1. Windows will think of BIOS time as your local time

2. The default time of ubuntu is BIOS time as GMT+0 time, which is the world standard time, while China is in The East 8 zone (GMT+8), so if your Ubuntu location is China, the time displayed by your system is BIOS time +8 hours. If it is 8 am, you will see 8 o 'clock on Ubuntu and 0 o 'clock in BIOS.

Correction method

Change ubuntu's approach to bios time to windows1.


sudo timedatectl set-local-rtc 1 


$ timedatectl         
   Local time: 6 2016-04-23 09:05:54 CST 
 Universal time: 6 2016-04-23 01:05:54 UTC 
    RTC time: 6 2016-04-23 09:05:54 
    Time zone: Asia/Shanghai (CST, +0800) 
 Network time on: yes 
NTP synchronized: no 
 RTC in local TZ: yes 
Warning: The system is configured to read the RTC time in the local time zone. 
     This mode can not be fully supported. It will create various problems 
     with time zone changes and daylight saving time adjustments. The RTC 
     time is never updated, it relies on external facilities to maintain it. 
     If at all possible, use RTC in UTC by calling 
     'timedatectl set-local-rtc 0'. 


Related articles: