ratp: Don't use fromisoformat
This commit is contained in:
parent
a7f428ace1
commit
8ae7cbb593
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user