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.





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

Post a Comment

Popular posts from this blog

[Solved] Gitlab remote: ERROR: Your SSH key has expired.

[Resolved] groupVersion shouldn't be empty

[Solved] Fingerprint sha256 has already been taken