5 ms·
Can’t you just ask the client which timezone it’s in? Every browser knows, and it will be a more accurate answer: the user might be on a foreign VPN or temporar
by deanishe 6y ago
Can’t you just ask the client which timezone it’s in? Every browser knows, and it will be a more accurate answer: the user might be on a foreign VPN or temporarily in another TZ, but not working on that timezone.
- sneak 6y agoMy application is not browser-based. I’d like to set a system clock timezone via geoip only, without location lookup via wifi. On my more secure systems I have location services disabled and it’d be nice to have an accurate local time automatically.
- sroussey 6y agoI have a need for this too, and considering making a basic service for it.
- sudhirj 6y agohttps://blip.runway7.net/v2.beta https://blip.runway7.net/v2.beta should work for you, let me know if it doesn't?
- sroussey 6y agoHi! I need to be able to send a lat/long/timestamp to get tinezone.
- sudhirj 6y agoAh, I haven’t seen a dataset I could use for that. Everything on the links I’m putting up is based on the country and state information. I’ve seen timezone maps drawn, so this information does exist somewhere, but one would have to draw polygons for each timezone and do coverage checks, which seems complicated. The time zone lines zig and zag a lot.
- jaakl 6y agoThis is surprisingly difficult task if you need it to work really globally and accurately. You need specific, detailed and uptodate map data for it, and timezones change somewhere in the world all the time. Especially daylight savigs. In 99% of cases you need to find some workaround or limit your task to specific regions, and get something to work in 95% cases
- sneak 6y agoWhere is the source code for v2.beta? It’s not on your GitHub.
- sudhirj 6y agoI actually can’t remember :-/ will fish it out and set up a proper service, maybe paid.