Skip to content

Set timezone globally #49

@ela-kotulska-frequenz

Description

@ela-kotulska-frequenz

What's needed?

Timezone is hardcoded now in many places in the code. We use: datetime.now(tz=pytz.UTC) everywhere.

Proposed solution

We should set timezone once globally at the start of the program.
https://stackoverflow.com/questions/1301493/setting-timezone-in-python

Use cases

Otherwise module that forgot timezone would work wrong.

Alternatives and workarounds

Have one global config variable for the timezone.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:❓We need to figure out which part is affectedpriority:lowThis should be addressed only if there is nothing else on the tabletype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions