Re: [PHP-DB] php date/time zone

[email protected] (Chris)
Newsgroups php.db
Message-ID <[email protected]>
Ron wrote:
> Hi All,
> 
> I have a form where in a user will enter a time and choose a timezone.
> 
> based on those, i need to insert to db the time as the actual time on 
> their timezone. how can i compute that on php? is it possible?

You should do this the other way.

Store everything in GMT, then change it on the way out.

Mainly for 2 reasons
- changing the timezone again would mean updating their old records 
(possibly).
- daylight savings time (you'll have to adjust it anyway)

-- 
Postgresql & php tutorials
http://www.designmagick.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.