1

Topic: timezone_mod

How to modify PunBB v. 1.2.5 to use plaintext zoneinfo locality strings vs. GMT relative
integer values.

This modification changes the timezone selection from a pure-math fixed-form system
to one based on strings and the system zoneinfo libraries. The associations between the
timezone strings and any PHP date/time functions is made by the OS system library calls.

It can be downloaded from here.

For example:
GMT -7 == US/Arizona

There are hundreds of these locality strings and they are much more descriptive than
GMT-relative values.

Note: This mod could cause privacy problems for those who would rather not disclose their locality.
A warning to the effect that would protect those who have issues with revealing such info and
they can always change their locality to be a little off but still be accurate.

Re: timezone_mod

Nice. I'm sure there are a bunch of forums out there that will use this.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by dchan 2005-05-29 23:29)

Re: timezone_mod

Just updated the timezone_mod for PunBB.

Had some real fun modifying a production forum with it and included some very useful notes in the readme.txt on how to implement the mod.

Now up to vers.
timezone_mod v. 1.0.2
And now with even more forehead slapping goodness.

4

Re: timezone_mod

Now up to vers. 1.0.3 after finding a reflective, insidious logic error I made in profile.php, where I was holding up a timezone mirror to myself. That's all better now, easy oversight fix.