🔀 Merge pull request #189 from LarveyOfficial/patch-2

Fix Sonarr Incorrect Dates
This commit is contained in:
Thomas Camlong
2022-06-08 08:11:13 +02:00
committed by GitHub

View File

@@ -124,8 +124,7 @@ function DayComponent(props: any) {
return date.toDateString() === day;
});
const sonarrFiltered = sonarrmedias.filter((media: any) => {
const date = new Date(media.airDate);
// Return true if the date is renerdate without counting hours and minutes
const date = new Date(media.airDateUtc);
return date.toDateString() === day;
});
const radarrFiltered = radarrmedias.filter((media: any) => {