diff --git a/scipost_django/scipost/services.py b/scipost_django/scipost/services.py index 090276d9bd6bb41176870a13d200dbc805e7e95f..6a04dd88b570413443e26bed01b1144461a59f79 100644 --- a/scipost_django/scipost/services.py +++ b/scipost_django/scipost/services.py @@ -245,7 +245,7 @@ class ChemRxivCaller: [a["firstName"] + " " + a["lastName"] for a in data.get("authors", [])] ), "abstract": data.get("abstract", ""), - "pub_date": datetime.datetime.fromisoformat(pub_date) + "pub_date": dateutil.parser.parse(pub_date) if (pub_date := data.get("publishedDate")) else None, "identifier_w_vn_nr": data.get("doi", ""),