How to set time zone as per country standard

Date command output:

# date
Sun Dec  4 00:33:27 HST 2016

As seen above HST is not indian. According to India IST (Indian Standard Time) is correct.

I tried update time using ntpdate command but not updated successfully.

# ntpdate pool.ntp.org
 5 Dec 00:34:27 ntpdate[23792]: 203.123.48.219 rate limit response from server.
 5 Dec 00:34:27 ntpdate[23792]: adjust time server 210.23.18.200 offset -0.000570 sec

Time zone file location
#  ls /usr/share/zoneinfo/

Delete time current timezone as this is not correct

# rm /etc/localtime

Make symbolic link, according to Country standard

# ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

#  ntpdate pool.ntp.org
4 Dec 23:30:57 ntpdate[4113]: step time server 139.59.21.22 offset -18.019687 sec

# /etc/init.d/ntpd start

# chkconfig ntpd on

# date
Sun Dec  4 23:31:28 IST 2016


Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

1 comments:

  1. I gathered as much knowledge regarding to the Linux, web sever and database server from your site.Keep on updating with more interesting topic.
    Moreover to recover the lost file from Linux Click on:
    android data recovery review
    launch android data recovery
    backup and restore android apps and data
    android backup app data
    recover lost files
    diskdigger pro file recovery

    ReplyDelete