Sunday 29 April 2018

How to Set the Time zone in Centos 7/ RHEL 7

By default, In the Centos 7 the time zone will be set to UTC time, so need to change to the time zone according to our setup / site NTP server.

List all the available time zones using the below command:

[root@linuxcnf ~]# timedatectl list-timezones

Set the time zone: Select the correct time zone as required to set on the server based on location and set the specific time zone using below command:

[root@linuxcnf ~]# timedatectl set-timezone Asia/Kolkata

Check the Time: Run the following date command to verify the changes:

[root@linuxcnf ~]# date
Sun Apr 29 16:21:59 IST 2018
[root@linuxcnf ~]#

Time zone is changed!!!

No comments:

Post a Comment