Time zone change
In most cases, the server and monitored computers should be set to the same time and time zone.
The time and time zone are set at the time of installation of the operating system.
In case you need to change the time zone on an already running system:
sudo dpkg-reconfigure tzdata
Next, we sequentially select our region and city.
Time change
To set the current time, you need to use the command:
sudo date +%T -s "11:14:00"
To set the current date do:
sudo date +%Y%m%d -s "20120418"
Note
Please note that time and time zone are different things.
Change the numbers to your time value.
DayMonthHourMinuteYear, where each value is allocated a two-digit number, and only the year is allocated a four-digit number.
Automatic time synchronization
You can use automatic time synchronization using NTPD and guides for the time synchronization daemon for Ubuntu Server.