Skip to content

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
zabuTNT committed Feb 23, 2023
1 parent b51b013 commit 0ee80fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,10 @@ public List<StopTimesInPattern> stopTimesForStop(Stop stop, long startTime, int

// Calculate the number of days to add
int days = (int) Math.ceil((double) timeRange / 86400);
if(timeRange >= 86400) days += 1;
List<ServiceDate> serviceDates = new ArrayList<>();
serviceDates.add(new ServiceDate(date).previous());
for (int i = 0; i < days; i++) serviceDates.add(new ServiceDate(date).shift(i));
for (int i = 0; i <= days; i++) serviceDates.add(new ServiceDate(date).shift(i));

for (TripPattern pattern : patternsForStop.get(stop)) {

Expand Down

0 comments on commit 0ee80fa

Please sign in to comment.