[nycphp-talk] Time zone based on country/state/city
jmcgraw1 at gmail.com
Tue Aug 25 17:05:05 EDT 2009
Also, you could just ask your users to supply their timezone... didn't
think of that one!
On Tue, Aug 25, 2009 at 5:03 PM, Jake McGraw<jmcgraw1 at gmail.com> wrote:
> On Tue, Aug 25, 2009 at 3:07 PM, Nelly Yusupova<nelly at cgim.com> wrote:
>> Hello Everyone,
>> Is there a way to figure out a time zone based on country/state/city. I
>> searched the web and could not find any resources.
> You have got two problems here:
> Most TZ databases are going to be LatLon specific, so, you'll have to
> convert an address (City, State, Country) to geolocation
> (latitude/longitude), Google and Yahoo have services for that.
> Then you'll have to convert the Lat Long to a timezone, using this:
> Hope that helps!
> - jake
>> Thank you in advance.
>> Nelly Yusupova
>> nelly at cgim.com
>> 917 603-9226 (phone)
>> URL: http://www.webgrrls.com
>> Blog: http://www.webgrrls.com/blog/
>> Twitter: http://twitter.com/DigitalWoman
>> New York PHP User Group Community Talk Mailing List
More information about the talk