Use UTC for filtering out AB releases

pull/2199/head
Bogdan 4 months ago
parent 123535b9a5
commit 753b53a529

@ -93,7 +93,7 @@ namespace NzbDrone.Core.Indexers.Definitions
if (searchCriteria.IsRssSearch)
{
cleanReleases = cleanReleases.Where((r, index) => r.PublishDate > DateTime.Now.AddDays(-1) || index < 20).ToList();
cleanReleases = cleanReleases.Where((r, index) => r.PublishDate > DateTime.UtcNow.AddDays(-1) || index < 20).ToList();
}
return cleanReleases.Select(r => (ReleaseInfo)r.Clone()).ToList();

Loading…
Cancel
Save