mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 23:05:18 -07:00
Fixed: All Day iCal events in local time
This commit is contained in:
parent
00c3074216
commit
65187e7d01
1 changed files with 2 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
using Nancy;
|
using Nancy;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -92,8 +92,6 @@ namespace NzbDrone.Api.Calendar
|
||||||
ProductId = "-//sonarr.tv//Sonarr//EN"
|
ProductId = "-//sonarr.tv//Sonarr//EN"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
foreach (var episode in episodes.OrderBy(v => v.AirDateUtc.Value))
|
foreach (var episode in episodes.OrderBy(v => v.AirDateUtc.Value))
|
||||||
{
|
{
|
||||||
if (premiersOnly && (episode.SeasonNumber == 0 || episode.EpisodeNumber != 1))
|
if (premiersOnly && (episode.SeasonNumber == 0 || episode.EpisodeNumber != 1))
|
||||||
|
@ -114,7 +112,7 @@ namespace NzbDrone.Api.Calendar
|
||||||
|
|
||||||
if (asAllDay)
|
if (asAllDay)
|
||||||
{
|
{
|
||||||
occurrence.Start = new CalDateTime(episode.AirDateUtc.Value) { HasTime = false };
|
occurrence.Start = new CalDateTime(episode.AirDateUtc.Value.ToLocalTime()) { HasTime = false };
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue