ratp: Don't use fromisoformat
This commit is contained in:
parent
a7f428ace1
commit
8ae7cbb593
@ -267,8 +267,8 @@ class RATPWeatherModule:
|
|||||||
|
|
||||||
application_periods = []
|
application_periods = []
|
||||||
for ap in disruption["application_periods"]:
|
for ap in disruption["application_periods"]:
|
||||||
ap["begin"] = datetime.fromisoformat(ap["begin"])
|
ap["begin"] = datetime.strptime(ap["begin"], "%Y%m%dT%H%M%S")
|
||||||
ap["end"] = datetime.fromisoformat(ap["end"])
|
ap["end"] = datetime.strptime(ap["end"], "%Y%m%dT%H%M%S")
|
||||||
|
|
||||||
if ap["end"] < now:
|
if ap["end"] < now:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user