Answer the question
In order to leave comments, you need to log in
How to determine TimeZone / UTC by address or GPS coordinates?
Colleagues tell me!
How to determine in PHP or JS TZ or UTC having, say: city / region / state / GPS coordinates ..
taking from the browser is not an option. The essence of the task: a certain address is indicated and the time is set from it..
Google threw the idea www.iana.org/time-zones , but I didn’t know a little what could be done with this base..
Help :)
Answer the question
In order to leave comments, you need to log in
If you need accuracy, then you need not just a base with time zones, but a map with them. Further, this map must be put, for example, into the SpatiaLite (SQLite) database and a spatial request should be made to enter a point with given coordinates into the map area. If you only have the name of a place, you need to first get the coordinates of that region to check in the same way.
What for? If you do not have a specialized site tied to the user's time (such as a calendar), then it is better to move all date conversions to the front-end and completely forget about them on the back-end, working in UTC.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question