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.

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

2 Answers 2

up vote 0 down vote accepted

Update the tzdata package.

share|improve this answer
    
that would do it for the system? –  matt74tm 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? –  matt74tm 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 elsie.nci.nih.gov/pub shows: tzcode2010m.tar.gz (notice the "m" version). –  matt74tm 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

 
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.