Skip to content
Snippets Groups Projects
Verified Commit 50391856 authored by Marco Aceti's avatar Marco Aceti
Browse files

Ensure correct midnight time

parent 151519a4
Branches
No related tags found
No related merge requests found
Pipeline #2813 passed
......@@ -81,7 +81,7 @@ class Train:
Train: the initialized train
"""
departing_date_midnight = api.ViaggiaTrenoAPI._to_datetime(
train_data["dataPartenzaTreno"]
train_data["dataPartenzaTreno"] + 18000 * 1000 # Ensure correct date
)
assert isinstance(departing_date_midnight, datetime)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment