Double date

merge-requests/8/head
Bob Mottram 2020-10-09 13:41:32 +01:00
parent 31bc48df9e
commit 9a7a6db47b
1 changed files with 2 additions and 1 deletions

View File

@ -559,7 +559,8 @@ def locateNewsArrival(baseDir: str, domain: str,
print('Arrival: content ' + str(arrival)) print('Arrival: content ' + str(arrival))
if arrival: if arrival:
arrivalDate = \ arrivalDate = \
datetime.strptime(arrival, "%Y-%m-%dT%H:%M:%SZ") datetime.datetime.strptime(arrival,
"%Y-%m-%dT%H:%M:%SZ")
return arrivalDate return arrivalDate
return None return None