Change timezone in EC2 instance

Change time Timezone

Check the time of the ec2 instance by > date. Normally it has 14 hours difference
cat /etc/sysconfig/clock
ZONE="UTC"
UTC=true
cp /etc/localtime /etc/localtime.backup
ln -sf /usr/share/zoneinfo/Australia/Sydney /etc/localtime
Make the change permanent by adding the following line to the "/etc/sysconfig/clock" file: ZONE="Australia/Sydney"
After this this will show the correct Sydney time

Comments

Popular posts from this blog

API design best practices

DB Connection Issues

Reading Excel Sheet on client side and processing it