3 ms·
I don't understand why this has to be queried against a server. Time zones don't change that much. Why can't this just be a standalone library download?
by jedberg 15y ago
I don't understand why this has to be queried against a server. Time zones don't change that much. Why can't this just be a standalone library download?
- jrd79 15y agoWe offer that as a Java library and associated data file. You can read about it on the web page.
- rogerbinns 15y agoThink mobile devices. The user often doesn't know what is correct (eg how many Americans would know about Arizona) and there is a fair amount of data behind the calculations of where you actually are. On a laptop with good net connections you could download that database. Other devices are more constrained. I have an Android tablet that is wifi only and hence cannot get time details from cell towers. I use this app which corrects the time via NTP, and updates the timezone information automatically by querying geonames. https://market.android.com/details?id=ru.org.amip.ClockSync https://market.android.com/details?id=ru.org.amip.ClockSync
- jedberg 15y agoOk, fair enough. I can see how a web service could be useful. But it seems like in most cases the use case is for an app running on an appserver somewhere, in which case it makes sense to have a library I'd say.
- rmc 15y agoTime zones don't change that much. Depends on the scale of your application. If it's truely global, then timezones change often. I think Russia tends to change it's timezones every 5 years or so
- jedberg 15y agoOnce every five years definitely falls in the realm of "download this library again". :)
- jrd79 15y agoActually, the Russian time zone change only changes the rules of those time zoned, not the geographical extent of them. Since we just return a tz id, users can just use an updated tz database (any up-to-date Linux system has this) to get the gmt offset at a particular time.
- mynegation 15y agoRussia is even worse than that. One year they "cancel winter time", essentially moving to daylight saving time for the whole year. And now parliament is discussing reversing that.
- dagw 15y agoCheck out http://www.timeanddate.com http://www.timeanddate.com. The last few years seems to avg 30-50 changes a year and there have been 11 updates so far this year. Time zones are a lot more dynamic than people think.