diff --git a/custom_components/london_tfl/tfl_data.py b/custom_components/london_tfl/tfl_data.py index 433eb25..7408c9d 100644 --- a/custom_components/london_tfl/tfl_data.py +++ b/custom_components/london_tfl/tfl_data.py @@ -15,7 +15,7 @@ def time_to_station(entry, with_destination=True, style='{0}m {1}s'): next_departure_time = ( parser.parse(entry['expectedArrival']).replace(tzinfo=None) - datetime.utcnow().replace(tzinfo=None) - ).seconds + ).total_seconds() next_departure_dest = get_destination(entry) return style.format( int(next_departure_time / 60),