> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Changing the time zone on an unmanaged hosting account

> Learn how to change the time zone on an unmanaged hosting account, including unmanaged VPS and dedicated servers.

This article describes how to change the time zone on an unmanaged hosting account, including unmanaged VPS and dedicated servers.

<Tip>
  * You must have root access to the server to change the time zone.

  * For information about changing the time zone on a managed hosting account, please see [this article](/docs/changing-the-time-zone-on-a-managed-hosting-account).
</Tip>

## AlmaLinux and Ubuntu servers

To change the time zone on a server running AlmaLinux or Ubuntu, follow these steps:

1. Log in to the server [using SSH](/docs/using-ssh-secure-shell).

2. To view the current time zone, type the following command:

   ```bash theme={null}
   timedatectl
   ```

3. To view a list of available time zones, type the following command:

   ```bash theme={null}
   timedatectl list-timezones
   ```

4. 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:

   ```bash theme={null}
   timedatectl set-timezone timezone
   ```

   For example, to set the time zone to Paris, France, type `timedatectl set-timezone Europe/Paris`.

   > 📘 Note
   >
   > Alternatively, as a non-root user you can type the following command if the account has *sudo* privileges:
   >
   > ```bash theme={null}
   > sudo timedatectl set-timezone timezone
   > ```

5. To verify the new time zone change, type the following command:

   ```bash theme={null}
   timedatectl
   ```

## Debian servers

To change the time zone on a server running Debian, follow these steps:

1. Log in to the server [using SSH](/docs/using-ssh-secure-shell).

2. As the root user, type the following command:

   ```bash theme={null}
   dpkg-reconfigure TZDATA
   ```

   > 📘 Note
   >
   > Alternatively, as a non-root user you can type the following command if the account has *sudo* privileges:
   >
   > ```bash theme={null}
   > sudo dpkg-reconfigure TZDATA
   > ```

3. Use the arrow keys to select the geographic area, and then press Enter.

4. Use the arrow keys to select the city or region in the time zone that you want, and then press Enter.

## Related articles

* [Changing the time zone on a managed hosting account](/docs/changing-the-time-zone-on-a-managed-hosting-account)

* [Changing the time zone in the Linux shell](/docs/changing-the-time-zone-in-the-linux-shell)

* [Changing the PHP time zone setting](/docs/php-time-zones)

* [Converting the MySQL time zone](/docs/convert-the-mysql-time-zone)

* [Changing the time zone in webmail](/docs/changing-the-time-zone-in-webmail)
