Re: [PHPLIB] Timezones From: Florian Gnägi (gnaegi <email protected>)
Date: 12/21/99

hi b

try using the php funtion date(). with the option Z you can easily
'converty' your local time to every other timezone. the best: it will not
just convert the daytime but also calculate the correct day, month, etc.

however, you still need a kind of offsets file...

cheers

-florian

On Tue, 21 Dec 1999, Baba Buehler wrote:

>
> I'd like to allow my users to pick their local timezone, store that in a
> user var somewhere and then convert all times on the site to their local
> timezone.
>
> First, I need an accurate list of timezones & GMT offsets, does anyone know
> where a good list or some code is?
>
> Second, the idea of constantly resetting the TZ environment variable seems a
> little kludgy to me, does anyone know of a better way to convert time?
>
>
> thanks,
> b
> --
> Baba Z Buehler <baba <email protected>> http://BabaZ.com/ PGP KeyID: 0xA88A6D4C
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
>

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.