Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My phpinfo() shows:

"Olson" Timezone Database Version   0.system 

Instead of installing the pecl module, isnt it better if I can update the system timezone database / system?

How can I do that?

I'm ona RHEL5/CentOS system.

share|improve this question
up vote 0 down vote accepted

Update the tzdata package.

share|improve this answer
that would do it for the system? – siliconpi Oct 20 '10 at 9:13
That will update anything that can reasonably called the "system timezone database". – Ignacio Vazquez-Abrams Oct 20 '10 at 9:16
Sorry to bother you, but how can I check the system timezone version? And I assume yum install tzdata should work fine to update? – siliconpi Oct 21 '10 at 12:05
rpm -q tzdata, and if there's an update then yum will find it. – Ignacio Vazquez-Abrams Oct 21 '10 at 14:35
This is slightly weird... rpm -q tzdata says: tzdata-2010l-1.el5 But shows: tzcode2010m.tar.gz (notice the "m" version). – siliconpi Oct 22 '10 at 11:14

If you are using CentOS 6, then just upgrade package:

[sudo] yum update tzdata

For CentOS 5, copy timezone file from CentOS 6 to your /etc/localtime on CentOS 5 and wait for upgrade being released

share|improve this answer

Your Answer


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.