Forrest logo
back to the timedatectl tool

timedatectl:tldr:5d197

timedatectl: Change the hardware clock time standard to localtime.
$ timedatectl set-local-rtc 1
try on your machine

The command "timedatectl set-local-rtc 1" is used to configure the system's Real-Time Clock (RTC) to store the time in local time rather than Coordinated Universal Time (UTC).

The Real-Time Clock (RTC) is a hardware component present in most computers that keeps track of the current time even when the system is powered off. By default, the RTC is set to store time in UTC, which is a standardized time reference used globally.

When you execute the command "timedatectl set-local-rtc 1," you are instructing the system to switch the RTC to store time in the local time zone rather than UTC. This can be useful in dual-boot systems that have both Windows and Linux installed, as Windows typically expects the RTC to be set in local time.

Setting the RTC to local time may avoid time discrepancies that can occur when switching between operating systems that have different expectations regarding the RTC's time representation. It ensures that the system's time remains consistent and accurate across different boot environments.

It is essential to note that changing the RTC setting may require adjusting the system's time when switching between different operating systems or adjusting time zone settings.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the timedatectl tool