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

AWS Oracle RDS - increasing tablespace maxsize

API design best practices

Elastic Search - Open and Close all Indices using python