Changing the TZ info in any Linux Distro

If you wish to use Indian timezone on your EC2 or any linux host which is showing the date output in a different timezone , use 

ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime

If you want to temporarily use a TimeZone, use the following and all the commands that use the TZ variable like date show the information in that timezone

export TZ=Asia/Calcutta

Cyberciti.biz

Leave a comment