-2

My Ubuntu 18.04.3 date/time is 3:10 AM Feb 26, 2020. However the BIOS date/time is 8:10 AM Feb 25, 2020. If I correct the date/time in Ubuntu, it changes it on the BIOS, and viceversa. How can I solve this?

assembler
  • 179

2 Answers2

1

Linux and UTC

Your computer stores the time in a hardware clock on its motherboard. The clock keeps track of time, even when the computer is off. This is the time you see in the BIOS.

By default, Linux and other Unix systems sets the hardware time is in Coordinated Universal Time (UTC). Then the time you see in Ubuntu as system time is offset according to the local timezone set. So if you don't live in UTC timezone or somewhere along prime meridian, the time you see in the BIOS will not match the time you see in Ubuntu.

This not a bug. This is a feature.

This is not a problem unless you dualboot Ubuntu and Windows. Windows by default sets the hardware clock to local time. So, when you switch between Windows and Ubuntu, the hardware clock will be interpreted differently and you will see the "wrong" time in one system or the other. See Clock time is off on dual boot for how to fix this problem for dual boot systems.

Hope this helps

user68186
  • 33,360
  • I thank you for your response, this is not a dual boot system. Nevertheless I will check your suggestion. – assembler Feb 25 '20 at 15:49
0

What about you time zone set up? You can get it from:
timedatectl

In case you want to sync the machine time with the network's time where the machine is accessing the internet

Did you tried to run sudo timedatectl set-ntp on

This commands will sync the time with the internet network time location

O.Caliari
  • 111