Anyone using Ubuntu and Windows on the same machine has likely experienced frustration with clock issues.
This happens for a very simple reason.
Windows uses local time, while Ubuntu uses Coordinated Universal Time (UTC) and then adds the Time Zone offset. For example, in São Paulo and Brasília, it's -3.
To fix this, you can make your Linux (Ubuntu) use local time, which is very easy and simple, and doesn't require modifying the Windows registry.
Execute the following command in a terminal to see your Linux (Ubuntu) time settings.
timedatectl
If you want to make Ubuntu (Linux) use local time, like Windows, open a terminal in your Linux (Ubuntu) and run the command:
timedatectl set-local-rtc 1 --adjust-system-clock
To verify if the change was successful, simply run the command again:
timedatectl
It doesn't get much simpler than that, does it?
Ah, but what if I want to go back to using UTC time, as it was originally? Then just type:
timedatectl set-local-rtc 0
Remember, you can always use the timedatectl command to check the current configuration. This way, you can change it whenever you wish.
Best regards,



