Fixed issue when LastLoginDate or LastActivityDate were null

This commit is contained in:
Patrick Barron 2020-05-26 22:30:23 -04:00
parent 46a0a2a601
commit fefb282137
1 changed files with 4 additions and 4 deletions

View File

@ -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; }