From 9a7a6db47b5ecce691a498de9e461b985ad310cf Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 9 Oct 2020 13:41:32 +0100 Subject: [PATCH] Double date --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 4d82a3b0c..5f78de871 100644 --- a/utils.py +++ b/utils.py @@ -559,7 +559,8 @@ def locateNewsArrival(baseDir: str, domain: str, print('Arrival: content ' + str(arrival)) if arrival: arrivalDate = \ - datetime.strptime(arrival, "%Y-%m-%dT%H:%M:%SZ") + datetime.datetime.strptime(arrival, + "%Y-%m-%dT%H:%M:%SZ") return arrivalDate return None