update timestamp parse for plugins

This commit is contained in:
dkanada 2021-02-23 19:22:20 +09:00
parent bc746b4d05
commit b18bb3d0de

View File

@ -372,7 +372,7 @@ namespace Emby.Server.Implementations.Plugins
Overview = packageInfo.Overview,
Owner = packageInfo.Owner,
TargetAbi = versionInfo.TargetAbi ?? string.Empty,
Timestamp = DateTime.Parse(versionInfo.Timestamp ?? string.Empty),
Timestamp = string.IsNullOrEmpty(versionInfo.Timestamp) ? DateTime.MinValue : DateTime.Parse(versionInfo.Timestamp),
Version = versionInfo.Version,
Status = PluginStatus.Active,
AutoUpdate = true,