Re: [PHPLIB] Timezones From: Bryan McGuire (joefriday <email protected>)
Date: 12/21/99

> 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?

You definately need to read the manual page about locale.
try http://php.nederland.net/manual/function.setlocale.php3

-
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.