We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5eb0126 + 59deb52 commit b214cfaCopy full SHA for b214cfa
src/org/bytedream/untis4j/responseObjects/Timetable.java
@@ -302,7 +302,7 @@ public Timetable searchByStartTime(LocalTime startTime) {
302
public Timetable searchByEndTime(LocalTime endTime) {
303
Timetable timetable = new Timetable();
304
305
- this.stream().filter(lesson -> lesson.getStartTime().format(DateTimeFormatter.ofPattern("HHmmss")).contains(endTime.format(DateTimeFormatter.ofPattern("HHmmss")))).forEach(timetable::add);
+ this.stream().filter(lesson -> lesson.getEndTime().format(DateTimeFormatter.ofPattern("HHmmss")).contains(endTime.format(DateTimeFormatter.ofPattern("HHmmss")))).forEach(timetable::add);
306
307
return timetable;
308
}
0 commit comments