Welcome to Raspberry Pi 4B repository
2.9 Modify Pi time
1.We can enter the command shown below at the command terminal to get System date and time:
date

2. If the display time is 8 hours slower than the current time, then you should set the time zone.
sudo dpkg-reconfigure tzdata
Next, it will prompt us to choose a region. I choose Asia here (because China is in Asia, users need to choose according to their current region)
Select region: Shanghai.(for example)
(!!Note: Choose a city closest to you)
Then press Enter and it will be OK.
3. Raspberry Pi has no battery, and cannot save time after power off. The Raspberry Pi has installed the NTP (Network Time Protocol) service by default to get the time provided by the ntp server on the Internet.
If this time is not allowed, you can use this command to calibrate.
sudo ntpd -s –d
4.If this time is not allowed too, you can use this command to Force the current time.
sudo date --s="2018-10-19 14:54:00"