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.

Comments

possible duplicate of How to get local time based on GPS coordinates?

Written by Pentium10

possible duplicate of Timezone lookup from latitude longitude

Written by Gordon

Yeah it was.. I had looked into geonames before but from what I could tell it didn't give the actual timezone NAME. Boy was I wrong and boy do I feel stupid now.

Written by Navarr

Accepted Answer

Geonames should do the job nicely:

http://www.geonames.org/

They've also got a php library.

Written by thomasfedb
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki