-->

Tuesday, December 22, 2015

Setting IST timezone on Amazon Ec2 instance

For setting the IST Timezone on the Ec2 instance


1. vi /etc/sysconfig/clock

ZONE="Asia/Kolkata"
UTC=false

2. sudo mv /etc/localtime /etc/localtime_old

3. sudo ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

4. sudo reboot

Restart is necessary for all the services to take the updated timezone.





4 comments:

  1. Hi Govind,

    The timezone is set before you release the server in production.
    AS i mentioned its necessary for all the services to take the updated timezone otherwise you may see variation.
    If you are already running in production you can go for the ntp setup as well.


    ReplyDelete