From 1cffee820367f271e3fd17f4874c65a11dfd9476 Mon Sep 17 00:00:00 2001 From: mlewisa <69481402+mlewisa@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:15:32 -0400 Subject: [PATCH] Update infobox.py Fixes: File "/usr/lib/python3.11/_strptime.py", line 352, in _strptime raise ValueError("unconverted data remains: %s" % ValueError: unconverted data remains: UTC --- itch_dl/infobox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itch_dl/infobox.py b/itch_dl/infobox.py index 9219370..02cf08d 100644 --- a/itch_dl/infobox.py +++ b/itch_dl/infobox.py @@ -35,7 +35,7 @@ def parse_date_block(td: BeautifulSoup) -> Optional[datetime]: date_str, time_str = abbr['title'].split('@') date = datetime.strptime(date_str.strip(), "%d %B %Y") - time = datetime.strptime(time_str.strip(), "%H:%M") + time = datetime.strptime(time_str.strip(), "%H:%M UTC") return datetime(date.year, date.month, date.day, time.hour, time.minute)