Skip to content

Commit

Permalink
Merge pull request #250 from ibi-group/fix-bus-delay-minutes
Browse files Browse the repository at this point in the history
Convert bus delays from seconds to minutes
  • Loading branch information
binh-dam-ibigroup authored Aug 19, 2024
2 parents 34a3436 + aa14a3f commit 018da94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public WaitForTransitInstruction(Leg transitLeg, Instant currentTime, Locale loc
public String build() {
// TODO: i18n
String routeShortName = getRouteShortNameFromLeg(transitLeg);
long delayInMinutes = transitLeg.departureDelay;
long delayInMinutes = transitLeg.departureDelay / 60;
long absoluteMinutes = Math.abs(delayInMinutes);
long waitInMinutes = Duration
.between(currentTime.atZone(DateTimeUtils.getOtpZoneId()), transitLeg.getScheduledStartTime())
Expand Down

0 comments on commit 018da94

Please sign in to comment.