← ServerPilot Docs

How to Change the Timezone of Your Server

You can change your server's timezone by SSHing in to your server as root and running this command:

sudo dpkg-reconfigure tzdata

Then, follow the prompts to pick your preferred timezone.

Many services require a restart to recognize the new timezone. The easiest way to ensure all necessary services are restarted after changing your server's timezone is to reboot your server with this command:

sudo reboot
PHP's default timezone is always UTC regardless of your server's timezone. Learn more about changing the default timezone in PHP.
Last updated: October 6, 2016

Launch your first site in 5 minutes