commit 2d126b4077f63219c19dd50dc7e4e2a72826e666
parent 3363f442cf21ba1c1a6aba7f4cd571dfec8544ba
Author: Isabelle K <hi@f2k1.de>
Date: Thu, 21 Jan 2021 16:10:46 +0100
parent 3363f442cf21ba1c1a6aba7f4cd571dfec8544ba
Author: Isabelle K <hi@f2k1.de>
Date: Thu, 21 Jan 2021 16:10:46 +0100
fix calculation of leg duration
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/formaters/renderJourney.nim b/src/formaters/renderJourney.nim @@ -92,7 +92,7 @@ proc renderJourney*(data: CacheObject, id: string): JsonNode = else: arrivalTime = leg.arrival.plannedTime - duration = departureTime - arrivalTime + duration = arrivalTime - departureTime lastArrival = leg.arrival