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:
parent
26ff28aae6
commit
b298f84f51
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue