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