Skip to content

Commit

Permalink
Fix: Schedule Index Test (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums authored Feb 11, 2025
1 parent 81f823d commit 22923e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private List<LeaderboardEntryDTO> getLatestLeaderboard() {
OffsetDateTime before = OffsetDateTime.now()
.with(TemporalAdjusters.previousOrSame(DayOfWeek.of(Integer.parseInt(scheduledDay))))
.withHour(Integer.parseInt(timeParts[0]))
.withMinute(timeParts.length > 0 ? Integer.parseInt(timeParts[1]) : 0)
.withMinute(timeParts.length > 1 ? Integer.parseInt(timeParts[1]) : 0)
.withSecond(0)
.withNano(0);
OffsetDateTime after = before.minusWeeks(1);
Expand Down

0 comments on commit 22923e2

Please sign in to comment.