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
UTC=true
cp /etc/localtime /etc/localtime.backup
ln -sf /usr/share/zoneinfo/Australia/Sydney /etc/localtime
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
Post a Comment