How to set timezone on your server

Post Reply
User avatar
Posts: 39
Joined: Mon Jul 19, 2021 1:41 am

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

Post Reply