FOr those machine that time resets often without any reason every boot
setTime.sh
If the output is the right date and time , change the 'utc.date' to 'datetime' For Arch Linux based, install these following, by default curl is already installed
sudo pacman -S curl
sudo pacman -S jq
Run the script in terminal, simply go to directory of the file and type the filename 'setTime.sh'
visit this article, recommend to use system.dhttps://www.baeldung.com/linux/run-script-on-startup
sudo chmod -x setTime.sh
RUN the script by
./setTime.sh