Change Timezone in Rocky 8

The following quick guide will show how to change the timezone. In this example my Rocky * machine is set to America/New York but I need to change it to Europe/London.

Confirm current timezone

ls -l /etc/localtime

My output showed:

lrwxrwxrwx. 1 root root 38 Oct 18 05:40 /etc/localtime -> ../usr/share/zoneinfo/America/New_York

To list all timezones

timedatectl list-timezones

Once you have confirmed the timezone you want run the following command (in my case Europe/London)

timedatectl set-timezone Europe/London

Run timedatectl command to confirm this has changed

timedatectl 

Output

Local time: Mon 2021-10-18 11:56:41 BST        
Universal time: Mon 2021-10-18 10:56:41 UTC              
RTC time: Mon 2021-10-18 10:56:41             
Time zone: Europe/London (BST, +0100)
 System clock synchronized: yes
               NTP service: active
           RTC in local TZ: no