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 CentOS 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.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.