Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Update filter function in CheckJob.kt for accurate time comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed Nov 18, 2023
1 parent 46cc8b2 commit 83cd0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/fr/jais/scraper/jobs/CheckJob.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CheckJob : Job {
calendar: Calendar
) = allEpisodes.filter {
val convertedReleaseDate = CalendarConverter.fromUTCDate(it.releaseDate)
calendar == convertedReleaseDate || calendar.after(convertedReleaseDate)
calendar == convertedReleaseDate || calendar.toISO8601() == convertedReleaseDate?.toISO8601() || calendar.after(convertedReleaseDate)
}
.sortedWith(
compareBy(
Expand Down

0 comments on commit 83cd0f6

Please sign in to comment.