I'm working on a site that makes heavy use of time zones which needs to be on the bleeding edge of the absolute latest tz information available (which I already get through the tz mailing list). What I don't know is how to get the PHP installations running on my development machine and my web host to use more up-to-date tz data instead of the older data already on them. This isn't as simple as just upgrading PHP, since even the newest versions of PHP won't necessarily have the absolute latest tz data at any given time.
It's been pointed out that the timezonedb package in pecl
will get me to the latest official release of the package, but what if I need to go a little further to get to that "bleeding edge" of updates that may not have been officially released yet? I'm pretty sure that the newer tz data would have to be compiled with zic
(distributed in tzcode), and the resulting binaries given to pecl
. I really don't know all that this entails, so insight/links for individual steps would be appreciated.
How can one upgrade this Olson database that is used natively by one's instances of PHP on (1) a XAMPP development machine and/or (2) a typical shared hosting service... while jumping through as few hoops and administrative hurdles as possible? Are there any particulars which a shared hosting environment might make more difficult that one should be aware of? Is it feasible to have multiple copies of the data present so that changes could easily be undone if one somehow screws them up?
Since changes sometimes aren't officially released in time for them to take effect, I'm looking specifically for a way to be able to make these changes arbitrarily on my own. I'm also interested in exploring potential tradeoffs over a range of possible solutions from "quick/easy" to "rigorous/best".