Date and time

How to change the date and time on your controller.

Setting the date and time correctly is important for validating connection certificates. If the date on the controller differs too much from the date on the machine that is trying to cennect, you may not be able to connect and you may see “Invalid Certificate” errors reported in your browser.

To set the correct time, log in to your controller via ssh. See Remote Access and file transfer.

Setting date and time

To check the current date and time, type the following in the terminal:

date

The date and time can be set by executing the following Linux command (as root):

sudo date -s "Mon Mar 15 18:49:40UTC 2019"
sudo hwclock -w

The last line is important because only then the time is set correctly in the hardware clock and is not lost on reboot.

Setting the Timezone

First, set the timezone by replacing the link /etc/localtime with a link that points to the desired timezone:

sudo rm -f /etc/localtime 
sudo ln -sf /usr/share/zoneinfo/Universal /etc/localtime

Replace Universal with your desired region or timezone.

The default setting is Universal Time.

Last modified October 6, 2022: Added Date Checking (7b720e9c)