aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-06-12 02:30:57 +0300
committerGitHub <noreply@github.com>2025-06-11 17:30:57 -0600
commit1c4c9cf733ce84a2b7a70a186f4412198951a271 (patch)
treeb0395f7c07eeae8922f7dca0aa582a6dba2de0f1 /Jellyfin.Server.Implementations
parentea34a38f091c3205c1c9c08541d622e83a443eed (diff)
Fix UserData cleanup task and queries (#14280)
Diffstat (limited to 'Jellyfin.Server.Implementations')
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
index f6f2d5577..23a2a98d0 100644
--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
@@ -108,7 +108,7 @@ public sealed class BaseItemRepository
using var context = _dbProvider.CreateDbContext();
using var transaction = context.Database.BeginTransaction();
- var date = (DateTimeOffset?)DateTimeOffset.Now;
+ var date = (DateTime?)DateTime.UtcNow;
// Detach all user watch data
context.UserData.Where(e => e.ItemId == id)
.ExecuteUpdate(e => e
@@ -529,7 +529,7 @@ public sealed class BaseItemRepository
{
// reattach old userData entries
var userKeys = item.UserDataKey.ToArray();
- var retentionDate = (DateTimeOffset?)null;
+ var retentionDate = (DateTime?)null;
context.UserData
.Where(e => e.ItemId == PlaceholderId)
.Where(e => userKeys.Contains(e.CustomDataKey))