Fix different time dual boot Ubuntu and Windows

By default Ubuntu use universal time (UTC) for real time clock (RTC) while Windows use local time for real time clock (RTC) that cause different time between OS.
To fix this we can change Ubuntu use local time.

#!/usr/bin/env bash
# Set ubuntu use local time
sudo timedatectl set-local-rtc 1 --adjust-system-clock
# Check setting
exit 0



Leave a Reply

%d bloggers like this: