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.
Geonames should do the job nicely:
They've also got a php library.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki