1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-28 02:37:40 +00:00

Fixed: All Day iCal events in local time

This commit is contained in:
Mark McDowall 2017-10-10 20:55:29 -07:00
parent 00c3074216
commit 65187e7d01
No known key found for this signature in database
GPG key ID: D4CEFA9A718052E0

View file

@ -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
{