[wp-hackers] Timezones, server settings, and WP dates
Stewart Ugelow
stewart at ugelow.com
Thu Jan 27 23:16:56 GMT 2005
> > You might want to see if the solutions in Chapter 3 of O'Reilly's "PHP
> > Cookbook" will meet your time-zone management needs.
>
>
> http://d0om.fnal.gov/d0admin/doctaur/dtdocs/p-langs/web_prog_b
ookshelf/pcook/ch03_12.htm
>
> http://d0om.fnal.gov/d0admin/doctaur/dtdocs/p-langs/web_prog_b
ookshelf/pcook/ch03_13.htm
>
> Looks like their solutions only work on Unix.
>
>
> Steve Minutillo
Well, when I wrote my post, I was trying to help Eric with his time zone
management needs -- I hadn't seen your message yet. :)
That said, zoneinfo-based solutions only work on Unix. But in the second
section of "PHP Cookbook" that you linked to, David and Adam provide an
alternative: "If you can't use zoneinfo, you can modify hardcoded time-zone
offsets based on whether the local time zone is currently observing DST."
The full timezone data is available at
http://www.twinsun.com/tz/tz-link.htm.
--Stewart
P.S. If you're feeling particularly adventurous, you can combine PHP with
the Javascript getTimezoneOffset method in nifty ways.
----
Stewart Ugelow
www.ugelow.com
More information about the hackers
mailing list