Skip to content

Commit

Permalink
fix(log): Fix wrong timezone in logfiles
Browse files Browse the repository at this point in the history
Since 939f267 the logfiles contained
the UTC timezone which is wrong. This patch changes the code such that
the timezone is set correctly to the **local** timezone of the current
platform.
  • Loading branch information
rumpelsepp committed Jul 17, 2024
1 parent a7e2695 commit 4cfdaf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gallia/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import socket
import sys
import tempfile
import time
import traceback
from collections.abc import Iterator
from dataclasses import dataclass
Expand All @@ -32,7 +33,8 @@
from logging import _ExcInfoType


tz = datetime.datetime.now(datetime.UTC).tzinfo
gmt_offset = time.localtime().tm_gmtoff
tz = datetime.timezone(datetime.timedelta(seconds=gmt_offset))


@unique
Expand Down

0 comments on commit 4cfdaf8

Please sign in to comment.