From 24d4e47a3894c80addd78eebf1155c4881509cfc Mon Sep 17 00:00:00 2001 From: outa Date: Thu, 14 Jul 2022 08:24:55 +0200 Subject: [PATCH] Avoid `unwrap_shim` method --- jrnl/DayOneJournal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jrnl/DayOneJournal.py b/jrnl/DayOneJournal.py index 506e6553..faeb5210 100644 --- a/jrnl/DayOneJournal.py +++ b/jrnl/DayOneJournal.py @@ -54,7 +54,8 @@ class DayOne(Journal.Journal): try: timezone = zoneinfo.ZoneInfo(dict_entry["Time Zone"]) except KeyError: - timezone = tzlocal.get_localzone().unwrap_shim() + timezone_name = str(tzlocal.get_localzone()) + timezone = zoneinfo.ZoneInfo(timezone_name) date = dict_entry["Creation Date"] # convert the date to UTC rather than keep messing with # timezones