From 21fbe4f445d2953e01a9fa92c8053987cc40daa6 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Thu, 21 Dec 2023 17:27:17 +0200 Subject: [PATCH] swap out date parser not working in python3.8 --- scipost_django/scipost/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scipost_django/scipost/services.py b/scipost_django/scipost/services.py index 090276d9b..6a04dd88b 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", ""), -- GitLab