Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a server set up through Amazon AWS. It's Amazon's RHEL-based AMI. When I initially booted up the machine, I set the proper timezone by creating a symlink:

ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

This works just fine, but whenever Amazon provides an update to their AMI the timezone automatically reverts to UTC. Is there a way around this or does it have to be manually set after each update?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Same thing happened to me. I think you need to update the /etc/sysconfig/clock config file to reflect your desired timezone in addition to updating /etc/localtime (which you've already done).

For me, this meant changing the default of:

ZONE="UTC"
UTC=true

To:

ZONE="Australia/Brisbane"

I won't really know if this has worked until the next time Amazon release an update, but I've got my fingers crossed ... :-)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.