Re: timezone problem
| From: | Baba Buehler | Date: | Tue, 21 May 2002 09:37:01 +0000 |
| Subject: | Re: timezone problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98569@lists.php.net to get a copy of this message | ||
Miguel Cruz wrote:
In short, I believe it's an OS rather than a PHP thing.time zones can be a messy and tricky beast. all the PHP functions rely on the underlying OS implementation of time zone information. sometimes this is controlled by the TZ environment variable, sometimes it is not. my solution was to extract as much info as reasonable from the zoneinfo database and manipulate it in PHP directly. the solution is not perfect, but is probably the best that can be done without more PHP access to the underlying zoneinfo implementation. my code (with all the time zone data & zone IDs) is in PEAR: http://pear.php.net/package-info.php?pacid=57 thanks, baba