Turn off ubuntu's ntp and set the time

open ntp

timedatectl set-ntp 0

close ntp

timedatectl set-ntp 1

Change the time

date -s "2023-1-6 17:32"

Guess you like

Origin blog.csdn.net/SweetHeartHuaZai/article/details/128208430