From 3d6c6a78ffcb77387aa57366e99d43120676f590 Mon Sep 17 00:00:00 2001 From: Nickelza Date: Sat, 24 Aug 2024 18:13:32 +0200 Subject: [PATCH] fix(time): Setting timezone environment variable --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index b36d773..a7d7ca7 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ import logging +import os import sys import time from zoneinfo import ZoneInfo @@ -63,6 +64,7 @@ def main() -> None: :return: None """ # Set timezone: Only on linux + os.environ["TZ"] = Env.TZ.get() try: time.tzset() except AttributeError: