Posted: . At: 12:17 PM. This was 4 years ago. Post ID: 14505
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to use local time in Ubuntu 20.04 and have the same time when rebooting into Windows.


The default installation of Ubuntu uses UTC time instead of local time to maintain the system clock. But this changes the Windows clock to UTC from local time when you reboot and this is very annoying.

Run this command to fix this issue.

jason@jason-desktop:~$ timedatectl set-local-rtc 1 --adjust-system-clock

This will change the clock from UTC to local time.

Then, run the timedatectl command to see a warning about the local time setting.

jason@jason-desktop:~$ timedatectl
               Local time: Thu 2020-07-23 10:27:56 AEST  
           Universal time: Thu 2020-07-23 00:27:56 UTC   
                 RTC time: Thu 2020-07-23 00:27:56       
                Time zone: Australia/Sydney (AEST, +1000)
System clock synchronized: yes                           
              NTP service: active                        
          RTC in local TZ: yes                           
 
Warning: The system is configured to read the RTC time in the local time zone.
         This mode cannot 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'.

But this works just fine. Now you do not need to worry about the Windows time changing when you re-boot from Linux.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.