diff options
author | stuebinm | 2023-05-26 22:47:11 +0200 |
---|---|---|
committer | stuebinm | 2023-05-26 22:47:11 +0200 |
commit | c0128f357b5268cd31969b8ff630db3ccb3681de (patch) | |
tree | 4b24d92ae77973cbc3a51813cf207d32189daa75 | |
parent | e029a031050e08599f9d6d5fa654c17d985039c1 (diff) |
change server timetables api
-rw-r--r-- | lib/Server.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Server.hs b/lib/Server.hs index 7ebaca5..eff1807 100644 --- a/lib/Server.hs +++ b/lib/Server.hs @@ -109,7 +109,8 @@ server gtfs@GTFS{..} Metrics{..} subscribers dbpool settings = handleDebugAPI [ "trip" .= tripTripID , "sequencelength" .= (stopSequence . V.last) tripStops , "stops" .= fmap (\Stop{..} -> A.object - [ "departure" .= stopDeparture + [ "departure" .= toUTC stopDeparture tzseries day + , "arrival" .= toUTC stopArrival tzseries day , "station" .= stationId stopStation , "lat" .= stationLat stopStation , "lon" .= stationLon stopStation |