From 65187e7d01c9ff9ff8230b71e23c9357417d13b3 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 10 Oct 2017 20:55:29 -0700 Subject: [PATCH] Fixed: All Day iCal events in local time --- src/NzbDrone.Api/Calendar/CalendarFeedModule.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs b/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs index 4845bc653..d8a95880a 100644 --- a/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs +++ b/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs @@ -1,4 +1,4 @@ -using Nancy; +using Nancy; using System; using System.Collections.Generic; using System.Linq; @@ -92,8 +92,6 @@ namespace NzbDrone.Api.Calendar ProductId = "-//sonarr.tv//Sonarr//EN" }; - - foreach (var episode in episodes.OrderBy(v => v.AirDateUtc.Value)) { if (premiersOnly && (episode.SeasonNumber == 0 || episode.EpisodeNumber != 1)) @@ -114,7 +112,7 @@ namespace NzbDrone.Api.Calendar if (asAllDay) { - occurrence.Start = new CalDateTime(episode.AirDateUtc.Value) { HasTime = false }; + occurrence.Start = new CalDateTime(episode.AirDateUtc.Value.ToLocalTime()) { HasTime = false }; } else {