‹ Articles

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 06, 2016

Still Have Questions?

Don't hesitate to contact us if you can't find the answers to your questions.