Re: php date/time zone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux