diff --git a/src/NzbDrone.Core/History/HistoryRepository.cs b/src/NzbDrone.Core/History/HistoryRepository.cs index 83cb82e1f..8436f9da3 100644 --- a/src/NzbDrone.Core/History/HistoryRepository.cs +++ b/src/NzbDrone.Core/History/HistoryRepository.cs @@ -64,7 +64,9 @@ namespace NzbDrone.Core.History public void Cleanup(int days) { - Delete(c => c.Date.AddDays(days) <= DateTime.Now); + var cleanDate = DateTime.Now.AddDays(-1 * days); + + Delete(c => c.Date <= cleanDate); } public History MostRecentForIndexer(int indexerId)