From c0128f357b5268cd31969b8ff630db3ccb3681de Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 26 May 2023 22:47:11 +0200 Subject: change server timetables api --- lib/Server.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3