How to keep the system on time in Windows and Ubuntu

Keeping the system on time in Dual Boot requires some configuration

Yes on your computer If you use Ubuntu and then switch to Windows, you will notice that it does not keep time well. That is why in this post we will see how to keep the system on time when you alternate between both operating systems.

In general there are usually no problems when you start in Windows and then move to Ubuntu sAlways have an Internet connection, but if you do not have it, you must correct it.

Why is it important to keep the system on time?

The use of the clock on our computer is not only so that we do not have to look away from the screen to look at the mobile phone or look up at the wall screen. Among other things it is used to:

  • File management: All files stored on your computer carry timestamps that are useful for indicating when they were created and when they were last accessed and modified. Thanks to this, it is possible to perform synchronization with cloud storage and backup copies. It also facilitates the search since it allows you to sort them from the most recent to the oldest.
  • Automated task scheduling: It is possible to set schedules for the computer to perform tasks on its own such as installing updates or running antivirus without interfering with user activities.
  • Networks: In interconnected equipment, synchronization between them is essential.
  • Informatic security: To verify the validity of digital certificates and execute authentication protocols, the accuracy of the timestamps is necessary.
  • Audits: To detect intrusions and other types of problems, it is very useful to know what time they occurred.

How to keep the system on time in Windows and Ubuntu

To solve a problem, we must first understand the cause and, for that, we have to explain the concept of Real Time Clock.

The real-time clock is located on the motherboard and receives power from a battery independent of mains electricity.  Its function is to keep the time up to date, information that is stored in permanent memory along with other information about the system configuration.

The watch measures time using an oscillator, usually made of quartz crystal, that sends a signal every second. To ensure accuracy, when logging on operating systems can connect to special servers for synchronization by connecting to atomic clocks.

The difference between Windows and Ubuntu is that Windows assumes that the Real Time Clock is set to local time while Ubuntu thinks it is synchronized with Universal Coordinated Time.

Let's give an example so that it is understood:

The time zone of Argentina is UTC -3. When I log in to Ubuntu at 10.49:7.49, the system checks the clock time with the server and pushes it back to 10:49 so that the system clock shows me 7:49. If I reboot and switch to Windows, Windows will think the system is in local time and display XNUMX:XNUMX.

Although it can be corrected from Windows, this can cause conflicts with some programs so it is better to do it in Linux.

Correction from terminal

We can make Ubuntu use local time with the command:
timedatectl set-local-rtc 1

Correction using graphical interface

  1.  We click on the 3 icons on the right of the top bar.
  2. We click on the gear wheel.
  3. In the side menu we click on System.
  4. We click on Date and time.
  5. We activate Automatic date and time.
  6. We activate automatic time zone.

In general I prefer not to touch anything and synchronize the time in Windows when I log in. This is done by placing the pointer over the clock and right-clicking on the Adjust date and time option. It can be done automatically, synchronizing with a time server or manually.

In a future article we will talk about the different widgets, applications and extensions that the different desktops available for Ubuntu have to show us the time and indicate the passage of time. That's the good thing about Linux, there are options for everything.

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.