views:

332

answers:

2

Is there a way get the timezone of a user by their latitude and longitude? And not just the offset, but the actual timezone they're in.

Essentially, I'm searching for the polar opposite of DateTimeZone::getLocation which returns the latitude and longitude for a certain timezone.

+2  A: 

Geonames should do the job nicely:

http://www.geonames.org/

They've also got a php library.

thomasfedb
+1  A: 

Read this before you give GeoNames a recommendation. http://forum.geonames.org/gforum/posts/list/1820.page

AtlasBody
That has nothing at all to do with this question, but thanks?
Navarr