Fixed: Parsing of first aired date on Arabic systems

This commit is contained in:
Mark McDowall 2019-04-24 00:04:54 -07:00
parent 26ff28aae6
commit b298f84f51
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization;
using System.Linq; using System.Linq;
using System.Net; using System.Net;
using NLog; using NLog;
@ -148,7 +149,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
if (show.FirstAired != null) if (show.FirstAired != null)
{ {
series.FirstAired = DateTime.Parse(show.FirstAired).ToUniversalTime(); series.FirstAired = DateTime.ParseExact(show.FirstAired, "yyyy-MM-dd", DateTimeFormatInfo.InvariantInfo).ToUniversalTime();
series.Year = series.FirstAired.Value.Year; series.Year = series.FirstAired.Value.Year;
} }