Re: php date/time zone

From: Date: Thu, 19 Mar 2009 05:16:55 +0000
Subject: Re: php date/time zone
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-46084@lists.php.net to get a copy of this message
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/

« previous php.db (#46084) next »