php date/time zone
am 19.03.2009 05:57:44 von ron
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?
hope i'm not confusing. tnx
regards
Ron
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: php date/time zone
am 19.03.2009 06:16:55 von dmagick
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/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php