Skip to content

Times from alarm server are without timezone.  #2

@Krolken

Description

@Krolken

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions