How to set timezone on your server

Post Reply
User avatar
isscbta
Team Member
Posts: 130
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 15 times
Been thanked: 3 times

In your SSH, as root, run:

Code: Select all

timedatectl list-timezones
This will show you the list of all time zones. When you chose yours, run:

Code: Select all

timedatectl set-timezone Europe/Berlin
Instead of Europe/Berlin insert your time zone previously found with the first command.

Optionally, maybe you also need to restart all PHP-FPM services so they can refresh system timezone:

Code: Select all

systemctl --full --type service --all | grep "php...-fpm" | awk '{print $1}' | xargs systemctl restart

Tags:
Post Reply