Fixed: Series year wrong when airing January 1st.

closes #4191
This commit is contained in:
Taloth Saldono 2020-12-24 12:40:19 +01:00
parent 026af22229
commit 182ad17b77
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
if (show.FirstAired != null)
{
series.FirstAired = DateTime.ParseExact(show.FirstAired, "yyyy-MM-dd", DateTimeFormatInfo.InvariantInfo).ToUniversalTime();
series.FirstAired = DateTime.ParseExact(show.FirstAired, "yyyy-MM-dd", DateTimeFormatInfo.InvariantInfo, DateTimeStyles.AssumeUniversal | DateTimeStyles.AdjustToUniversal);
series.Year = series.FirstAired.Value.Year;
}