How to set the timezone in CentOS 7 or Ubuntu 20.04 to Africa/Johannesburg

To set the timezone in CentOS 7 or Ubuntu, do the following:

timedatectl set-timezone Africa/Johannesburg

Share this article

1 thought on “How to set the timezone in CentOS 7 or Ubuntu 20.04 to Africa/Johannesburg”

Leave a Reply

Your email address will not be published.

Scroll to Top