Skip to content

Commit

Permalink
Fix issue with cancellations on trip patterns that run after midnight
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Mar 1, 2024
1 parent b833b37 commit cc0c13d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ public List<TripPatternForDate> getTripPatternsRunningOnDateCopy(LocalDate runni

public List<TripPatternForDate> getTripPatternsStartingOnDateCopy(LocalDate date) {
List<TripPatternForDate> tripPatternsRunningOnDate = getTripPatternsRunningOnDateCopy(date);
tripPatternsRunningOnDate.addAll(getTripPatternsRunningOnDateCopy(date.plusDays(1)));
return tripPatternsRunningOnDate
.stream()
.filter(t -> t.getLocalDate().equals(date))
.distinct()
.collect(Collectors.toList());
}

Expand Down

0 comments on commit cc0c13d

Please sign in to comment.