Merge branch 'master' into minor15

This commit is contained in:
Bond-009
2021-08-13 00:33:18 +02:00
committed by GitHub
223 changed files with 2587 additions and 1989 deletions

View File

@@ -65,7 +65,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
throw new Exception($"Activity Log Retention days must be at least 0. Currently: {retentionDays}");
}
var startDate = DateTime.UtcNow.AddDays(retentionDays.Value * -1);
var startDate = DateTime.UtcNow.AddDays(-retentionDays.Value);
return _activityManager.CleanAsync(startDate);
}