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

Times from alarm server are without timezone. #2

Open
Krolken opened this issue Dec 30, 2018 · 0 comments
Open

Times from alarm server are without timezone. #2

Krolken opened this issue Dec 30, 2018 · 0 comments

Comments

@Krolken
Copy link
Contributor

Krolken commented Dec 30, 2018

The time on the alarm server used for testing is windows based and is sending times in local time (Sweden +2).

This could be an issue since python makes timezone unaware objects in local time if no timezone is given and if the client and server is in different timezones we will get differences in time.

Proposed solution is to add a custom Mashmallow field that can take an in timezone and and out timezone and transform the date to the correct timezone. Should also localize.

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

1 participant