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

Convert last_run to UTC epoch timestamp #41

Closed
vinteo opened this issue Jun 27, 2020 · 0 comments · Fixed by #42
Closed

Convert last_run to UTC epoch timestamp #41

vinteo opened this issue Jun 27, 2020 · 0 comments · Fixed by #42

Comments

@vinteo
Copy link
Owner

vinteo commented Jun 27, 2020

The devt returned from the API is in local time in the form of epoch timestamp. This should be converted to a proper UTC epoch timestamp using the timezone tz returned by the API. The time zone is in the format:

Time zone (floating point time zone value * 4 + 48). For example, GMT+0:00 is 48; GMT-4:00 is 32, GMT+9:30 is 86. Acceptable range is 0 to 108.

Context: vinteo/hass-opensprinkler#89

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

Successfully merging a pull request may close this issue.

1 participant