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

Use ip-api.com to fetch timezone offsets more accurately? #175

Open
scottchiefbaker opened this issue Dec 18, 2023 · 3 comments
Open

Use ip-api.com to fetch timezone offsets more accurately? #175

scottchiefbaker opened this issue Dec 18, 2023 · 3 comments

Comments

@scottchiefbaker
Copy link

scottchiefbaker commented Dec 18, 2023

I've had really good luck using ip-api.com to fetch timezone offsets. They offer simple newline support:

# Get the TZ offset for the requesting IP
curl http://ip-api.com/line/?fields=offset

Or full featured JSON if needed as well:

# Get information about the requesting IP
curl http://ip-api.com/json/
@ropg
Copy link
Owner

ropg commented Dec 18, 2023 via email

@scottchiefbaker
Copy link
Author

I wonder if it's GeoLocked? Their documentation doesn't say anything about that though.

It's really great, simple API. Been around since 2012, so I don't think it's going anywhere.

@ropg
Copy link
Owner

ropg commented Dec 18, 2023 via email

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