How to change a timezone on RHEL7 Linux server

Changing a timezone on Redhat 7 Linux server is a easy task which can be done on a command line with a few commands. First find your timezone using timedatectl command. The following linux command will list all timezones:

[root@rhel7 ~]# timedatectl list-timezones

To narrow down the search you can use grep to search for a specific city. For example:

[root@rhel7 ~]# timedatectl list-timezones | grep -i bratislava
Europe/Bratislava

In the last step we simply use timedatectl command to set new timezone. Here is our current timezone:

[root@rhel7 ~]# date
Thu Dec 11 08:01:53 EST 2014

Next we change timezone:

[root@rhel7 ~]# timedatectl set-timezone Europe/Bratislava

To confirm that you have successfully changed your timezone run date command again:

[root@rhel7 ~]# date
Wed Dec 10 22:03:37 CET 2014