Centos V7 Time setting

You can found the current time setting by using “timedatectl” the output will be like below:

Local time: Fri 2017-06-30 16:37:54 MYT
Universal time: Fri 2017-06-30 08:37:54 UTC
RTC time: Fri 2017-06-30 08:37:54
Time zone: Asia/Kuala_Lumpur (MYT, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a

issue below command will show you the current time zone on the server setting.
timedatectl | grep Time

Sample output:

Time zone: Asia/Kuala_Lumpur (MYT, +0800)

in order to get the time zone name format for your location you can list all the available time zone by issue below command:
timedatectl list-timezones

After founding your local time zone name you can set the time zone by below command.
timedatectl set-timezone “Asia/Kuala_Lumpur”

At the end os setting to make sure your server has correct time zone setting issue below command.

timedatectl status

Leave a Reply

Your email address will not be published. Required fields are marked *