aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorstuebinm2023-05-26 22:47:11 +0200
committerstuebinm2023-05-26 22:47:11 +0200
commitc0128f357b5268cd31969b8ff630db3ccb3681de (patch)
tree4b24d92ae77973cbc3a51813cf207d32189daa75 /lib
parente029a031050e08599f9d6d5fa654c17d985039c1 (diff)
change server timetables api
Diffstat (limited to 'lib')
-rw-r--r--lib/Server.hs3
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