Skip to content

Instantly share code, notes, and snippets.

@BBavouzet
Last active March 22, 2020 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BBavouzet/a4953b8e875c6c2979c3db4a3f9d2d32 to your computer and use it in GitHub Desktop.
Save BBavouzet/a4953b8e875c6c2979c3db4a3f9d2d32 to your computer and use it in GitHub Desktop.
Set Clock Time on Dual-Boot Systems

If you're dual-booting Ubuntu 18.04 and Windows 10, you may find that changing time in one system affects the other and the two systems can't display the same time.

This happens as Ubuntu interprets the hardware clock or real time clock (RTC) in universal time (UTC) by default while Windows 10 maintains the clock in local time.

You can fix this by keeping RTC in local time in Ubuntu by running a command in the terminal below.

timedatectl set-local-rtc 1 --adjust-system-clock

To undo this setting, enter the command below.

timedatectl set-local-rtc 0 --adjust-system-clock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment