![Forrest logo](/images/logo.png)
timedatectl:tldr:5d197
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.