Skip to content

Change a server's timezone

To change a server’s timezone, including the timezone used in log files, SSH into the server as root and run the following command.

Terminal window
sudo dpkg-reconfigure tzdata

Follow the prompts to pick your preferred timezone.

Many services require a restart to recognize the new timezone. The easiest way to ensure all services are restarted after changing your server’s timezone is to reboot your.

Terminal window
sudo reboot