nate-parrott / Flashlight

The missing Spotlight plugin system
http://flashlight.nateparrott.com
Other
5.39k stars 411 forks source link

Change Timezone API from EarthTool to Google Time Zone. #454

Closed cHemingway closed 9 years ago

cHemingway commented 9 years ago

The EarthTools API does not seem to always know daylight savings for a location. This causes the incorrect time and offset to be reported, see issue #445.

To show the problems with the EarthTools API, you can go to http://www.earthtools.org and select "Helsinki". It reports daylight savings time as "unknown" when it started last month, which is presumably the problem.

This commit changes to using the Google Time Zone API, which knows daylight savings and provides it separately for us to take into account.

The free API allows 2,500 requests per day, and 5 per second, which should be more than enough.

nate-parrott commented 9 years ago

thanks!