Skip to content

Commit

Permalink
fix(time): Setting timezone environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickelza committed Aug 24, 2024
1 parent 1a57597 commit 3d6c6a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import os
import sys
import time
from zoneinfo import ZoneInfo
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3d6c6a7

Please sign in to comment.