We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31aedbd commit e3196aaCopy full SHA for e3196aa
database/scrape_common.py
@@ -192,6 +192,12 @@ def convert_to_iso(date_str):
192
except ValueError:
193
pass
194
195
+ # Try to parse ISO format with timezone offset like '2013-08-17T02:00:00+02:00'
196
+ try:
197
+ return datetime.fromisoformat(date_str).strftime('%Y-%m-%d')
198
+ except ValueError:
199
+ pass
200
+
201
raise ValueError(f"Unsupported date format: {date_str}")
202
203
0 commit comments