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:
mlewisa 2024-03-15 18:15:32 -04:00 committed by Dragoon Aethis
parent 6c7df3aac2
commit 1cffee8203

View File

@ -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)