Skip to content

Time

If the CareSuite server is not connected to the internet the server clock will drift and not be accurate after a period of time has passed.

Set current time manually

Open a Terminal and run the following command to set the current time. Note that this solution will not permanently fix the time issue.

bash
# Set the current time to the specified value.
sudo date -s "2022-12-31 12:05:04"

Enable NTP time sync

To permanently fix the time issue, you will need to enable NTP time synchronisation. You will need to have access to an internal NTP server that provides you with the current time.

Open a Terminal and open the file /etc/systemd/timesyncd.conf in an editor:

bash
sudo gedit /etc/systemd/timesyncd.conf

Add the IP or Hostname of your NTP server to the line that starts with NTP=:

ini
[Time]
NTP=your.ntp.server.ip

Save the file and exit. Then run the following command to reload the configuration:

bash
sudo systemctl restart systemd-timesyncd

Check that your custom ntp server is active by running the following command:

bash
timedatectl timesync-status

Your ntp server should be displayed on the first line.