Re: guessing timezone based on country/state/city

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

 



Hello,

On 10/18/2004 10:35 PM, Justin French wrote:
I was hoping to do this with an educated guess based on user input like country, state and town, rather than by asking the user (who isn't too technically minded) to decide.


One easy way to do what you want is to use the Javascript Date object getTimeZoneOffset() function to fill in some form hidden field to pass the timezone offset to the server.

It relies on Javascript but it does exactly what you want.


Manuel, knowing the user's TZ via JS doesn't help me know the TZ of the event (which may be in a different zone to the user) unfortunately... and I'd rather not trust a client side variable like that regardless.

I was trying to suggest a free solution that may not be accurate but may be sufficient for your purposes.


There are also paid solutions:

http://www.worldtimeserver.com/time_zone_guide/ascii-file.aspx

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux