Set system time and synchronize to hardware time
date -s '2023-05-26 12:30:20'
hwclock -w
Write the boot hardware time to the system time
export TZ=CST-8
hwclock --hctosys
Set system time and synchronize to hardware time
date -s '2023-05-26 12:30:20'
hwclock -w
Write the boot hardware time to the system time
export TZ=CST-8
hwclock --hctosys