Ubuntu local time sync to hardware bios time
If wants to let Ubuntu local time be same as bios time, it needs to do below steps.
sudo apt update
sudo apt install ntp
sudo timedatectl set-ntp true
sudo timedatectl set-local-rtc 1
After above setting,
If you want to change timezone, please take reference from /usr/share/zoneinfo to get correct timezone script. (EX, change to US New York) and follow below command.
sudo timedatectl set-timezone America/New_York
sudo date --set="2019-08-06 10:05:59"
sudo hwclock --systohc
Reboot system, you will get correct time.
sudo apt update
sudo apt install ntp
sudo timedatectl set-ntp true
sudo timedatectl set-local-rtc 1
After above setting,
If you want to change timezone, please take reference from /usr/share/zoneinfo to get correct timezone script. (EX, change to US New York) and follow below command.
sudo timedatectl set-timezone America/New_York
sudo date --set="2019-08-06 10:05:59"
sudo hwclock --systohc
Reboot system, you will get correct time.
留言