Portal Home > Knowledgebase > How-to > Hosting > SSH > 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.
Add to Favourites Print this Article
Powered by WHMCompleteSolution