fix parsing of added value

This commit is contained in:
Luke Pulverenti 2016-08-17 16:35:39 -04:00
parent fd6aa72dac
commit acc02aa3c3

View File

@ -231,7 +231,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
DateTime added; DateTime added;
if (DateTime.TryParseExact(val, BaseNfoSaver.DateAddedFormat, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal, out added)) if (DateTime.TryParseExact(val, BaseNfoSaver.DateAddedFormat, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal, out added))
{ {
item.EndDate = added.ToUniversalTime(); item.DateCreated = added.ToUniversalTime();
} }
else if (DateTime.TryParse(val, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal, out added)) else if (DateTime.TryParse(val, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal, out added))
{ {