ratp: Don't use fromisoformat

This commit is contained in:
nemunaire 2023-08-15 13:54:27 +02:00
parent a7f428ace1
commit 8ae7cbb593

View File

@ -267,8 +267,8 @@ class RATPWeatherModule:
application_periods = []
for ap in disruption["application_periods"]:
ap["begin"] = datetime.fromisoformat(ap["begin"])
ap["end"] = datetime.fromisoformat(ap["end"])
ap["begin"] = datetime.strptime(ap["begin"], "%Y%m%dT%H%M%S")
ap["end"] = datetime.strptime(ap["end"], "%Y%m%dT%H%M%S")
if ap["end"] < now:
continue