How do I setup my own time server
Open the terminal and enter the following command to edit the time synchronization configuration file:
sudo nano /etc/systemd/timesyncd.conf
In the file, find the line "#NTP=" and replace it with the IP address of your desired NTP server, for example:
NTP=172.16.59.134
Save the changes and exit the text editor.
Restart the systemd-timesyncd service to apply the new configuration:
sudo systemctl restart systemd-timesyncd
If the time is still not synchronized after a while, it could be due to a significant time difference (clock skew). You can remedy this with the following steps:
Stop NTP synchronization
Set the time manually to a value close to the current time:
Resume NTP synchronization
If you still have problems, please send a screenshot after entering this command.
Please have also a look here: