Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezones not working #2

Closed
Spreeuw opened this issue Sep 21, 2018 · 2 comments
Closed

Timezones not working #2

Spreeuw opened this issue Sep 21, 2018 · 2 comments

Comments

@Spreeuw
Copy link

Spreeuw commented Sep 21, 2018

A few days ago this was still working for me, but it stopped working for some reason, even with your simple example. when enabling debugging (INFO), I got the following error:

Timezone lookup for: Pacific/Auckland
ERROR: Data not found

Checking the source, it appears that this library uses https://timezoneapi.io to get the data, which states on their website:

Announcement: As of October 4th, 2018 TimezoneAPI will no longer support free plans. Read more…

That's still 2 weeks from now, so to get more debugging I set debug to DEBUG, and it looks like they have a 301 redirect from the http address to https:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://timezoneapi.io/api/timezone/?Pacific%2FAuckland">here</a>.</p>
</body></html>

so it looks like going forward another method for getting timezones should be used...

@ropg
Copy link
Owner

ropg commented Sep 21, 2018 via email

@ropg
Copy link
Owner

ropg commented Sep 25, 2018

Alright: 0.7.4 takes out the dependency on timezoneapi.io and uses the brand new timezoned.rop.nl UDP service that I wrote. Hosted on my own server with 1 Gbps. Has the added benefit of making the AVR code smaller as we now only use UDP and no TCP. Country-code lookups and GeoIP work for countries that do not span multiple timezones. Please test...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants