Skip to content

The Free Software Media System - Server Backend & API

Fixed issue when LastLoginDate or LastActivityDate were null

Patrick Barronfefb282137e5
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs
index 0113b49fd0..53c93f64b5 100644
--- a/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs
+++ b/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs
@@ -116,8 +116,8 @@ namespace Jellyfin.Server.Migrations.Routines
SubtitleLanguagePreference = config.SubtitleLanguagePreference,
Password = mockup.Password,
EasyPassword = mockup.EasyPassword,
- LastLoginDate = mockup.LastLoginDate ?? DateTime.MinValue,
- LastActivityDate = mockup.LastActivityDate ?? DateTime.MinValue
+ LastLoginDate = mockup.LastLoginDate,
+ LastActivityDate = mockup.LastActivityDate
};
if (mockup.ImageInfos.Length > 0)
@@ -196,9 +196,9 @@ namespace Jellyfin.Server.Migrations.Routines
public string EasyPassword { get; set; }
- public DateTime? LastLoginDate { get; set; }
+ public DateTime LastLoginDate { get; set; }
- public DateTime? LastActivityDate { get; set; }
+ public DateTime LastActivityDate { get; set; }
public string Name { get; set; }