I'm trying to change my server's timezone.

I was following this tutorial but I can't get it to change to Pacific Standard Time.

ln -sf /usr/share/zoneinfo/EST localtime

Will work, but

ln -sf /usr/share/zoneinfo/PST localtime

will not. What's going on here?

link|improve this question

feedback

3 Answers

up vote 2 down vote accepted

You have to do two things: edit /etc/sysconfig/clock, you will need to change the ZONE variable. And once you've changed it, next time you reboot your CentOS it will apply the change.

To apply it inmediately you need to change the /etc/localtime, i.e.

ln -sf /usr/share/zoneinfo/PST8PDT /etc/localtime

That will make the change immediate, but remember to also edit /etc/sysconfig/clock so your change won't be undone in next reboot.

link|improve this answer
feedback

Try ln -sf /usr/share/zoneinfo/US/Pacific localtime

link|improve this answer
feedback
# yum -y install system-config-date
# system-config-date
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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