Here’s a quick and easy way to change the timezone configuration on Raspian / Debian / Ubuntu server, but will probably work on other linux flavors as well.
First, lets see what our current configuration is:
timedatectl
Local time: Fri 2021-09-10 19:13:06 BST
Universal time: Fri 2021-09-10 18:13:06 UTC
RTC time: n/a
Time zone: Europe/London (BST, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
To get a list of all the supported time-zones:
timedatectl list-timezones
And something like this to grep for relevant ones:
timedatectl list-timezones | grep "America"
Next, lets set our time-zone:
sudo timedatectl set-timezone America/New_York
Finally, check to make sure the changes were applied:
timedatectl
Local time: Fri 2021-09-10 14:21:42 EDT
Universal time: Fri 2021-09-10 18:21:42 UTC
RTC time: n/a
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
That’s it! Pretty simple stuff.