Set timezone Ubuntu 20.04/22.04

The first step is to get a list of timezones:

timedatectl list-timezones

Once you have identified your timezone, simply run the following:

sudo timedatectl set-timezone your_time_zone

An example, to set your timezone to Africa/Johannesburg, run the following:

sudo timedatectl set-timezone Africa/Johannesburg