1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-23 08:15:27 +00:00

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

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using NLog;
@ -148,7 +149,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
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;
}