fix parsing of added value
This commit is contained in:
parent
fd6aa72dac
commit
acc02aa3c3
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user