Choose language

Portal Home > Knowledgebase > How-to > Hosting > SSH > How to change timezone on my slot


How to change timezone on my slot




If you live in another timezone than the one used on the server, you can change the timezone on your slot. You can do this via SSH, please use the following command:

tzselect


And follow the prompts to find your timezone and country. After it's finished, you will see something like that:

You can make this change permanent for yourself by appending the line
        TZ='Europe/Amsterdam'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
Europe/Amsterdam



You have just changed your timezone but just for the current SSH session. To make it permanent please use this command:

echo "TZ='Europe/Amsterdam'; export TZ" >> ~/.profile


where "TZ='Europe/Amsterdam'; export TZ" is your timezone which you have in log after completing the command tzselect.

Now type this command:
source ~/.profile


To check your timezone try the command:
date


Now you need to restart all your services to make time changes.

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
SSH how to get connected (Views: 1305)
SSH tunnel - basic usage (Views: 29497)

Powered by WHMCompleteSolution