Windows uses local time, ubuntu uses UTC time, and the time difference between the two is 8h.
First install the time synchronization tool:
sudo apt install ntpdate
Then use the time synchronization tool to synchronize the time over the Internet:
sudo ntpdate time.windows.com
Set ubuntu to local time:
sudo hwclock --localtime --systohc
After restarting, the dual system time will be synchronized!