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.

link|improve this question

71% accept rate
feedback

2 Answers

up vote 0 down vote accepted

Update the tzdata package.

link|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
show 3 more comments
feedback

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

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.