This article describes how to change the time zone on an unmanaged hosting account, including unmanaged VPS and dedicated servers.
To change the time zone on a server running AlmaLinux or Ubuntu, follow these steps:
timedatectl
To view a list of available time zones, type the following command:
timedatectl list-timezones
As the root user, type the following command to change the time zone. Replace timezone with the name of the time zone you obtained in step 3:
timedatectl set-timezone timezone
For example, to set the time zone to Paris, France, type timedatectl set-timezone Europe/Paris.
Alternatively, as a non-root user you can type the following command if the account has sudo privileges:
sudo timedatectl set-timezone timezone
To verify the new time zone change, type the following command:
timedatectl
To change the time zone on a server running Debian, follow these steps:
dpkg-reconfigure TZDATA
Alternatively, as a non-root user you can type the following command if the account has sudo privileges:
sudo dpkg-reconfigure TZDATA
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.