-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature request: Add timezone_offset #15
Comments
The timezone value for the forecast API is the offset. See here: https://openweathermap.org/forecast5 Yes, the name is misleading, but that is down to the API, not this library! |
Of course the onecall API schema just has to be different to forecast… |
The onecall API returns the numeric timezone offset in the `timezone_offset` field, unlike the forecast API which returns it in the `offset` field. Refer Bodmer#15
The onecall API returns the numeric timezone offset in the `timezone_offset` field, with the text offset in the `timezone` field. This is different to the forecast API which returns the numeric offset in the `timezone` field. Refer Bodmer#15
I forgot that I locally fixed this so raised a PR for you #19 |
Can you add
timezone_offset
as a public member to OW_Weather, just liketimezone
?This would make local timezone conversions much easier instead of relying on another library or lookup table to convert the timezone.
The text was updated successfully, but these errors were encountered: