mirror of
https://github.com/DragoonAethis/itch-dl.git
synced 2025-01-22 01:41:11 +01:00
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
This commit is contained in:
parent
6c7df3aac2
commit
1cffee8203
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user