Re: timezone problem
| From: | Christopher Riordan | Date: | Tue, 21 May 2002 17:05:07 +0000 |
| Subject: | Re: timezone problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98612@lists.php.net to get a copy of this message | ||
I had a similar issue, for a thing I'm doing for a Messageboard I am writing
I need the timezones and offsets, so I compiled the best I could off
different sites and info, and created a Mysql Table with all the timezones
and offsets. there are duplicate offsets but since people know their TZ as
different things depending where they live. I can do a dump if people would
like
Chris Riordan
http://www.hal-9000.net
----- Original Message -----
From: "SP" <internetracer@yifan.net>
To: "Baba Buehler" <baba@BabaZ.com>; <php-general@lists.php.net>
Sent: Tuesday, May 21, 2002 12:47 PM
Subject: RE: [PHP] timezone problem
> Hi Baba
>
> I've been trying to get as much info on this as
> possible and you are right it is quite messy.
> Thanks for that link, I'm going to take a look at
> your code.
>
>
>
> -----Original Message-----
> From: Baba Buehler [mailto:baba@BabaZ.com]
> Sent: May 21, 2002 5:37 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] timezone problem
>
>
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>