From 040c0ea21aa02402429f81e063994b4a503fa271 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 11 Nov 2015 21:25:12 -0500 Subject: [PATCH] fix schedules direct request dates --- .../LiveTv/Listings/SchedulesDirect.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs index 75247e95d..e041b3a2a 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs @@ -48,10 +48,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings { List dates = new List(); - var start = new List { startDateUtc, startDateUtc.ToLocalTime() }.Min(); - var end = new List { endDateUtc, endDateUtc.ToLocalTime() }.Max(); + var start = new List { startDateUtc, startDateUtc.ToLocalTime() }.Min().Date; + var end = new List { endDateUtc, endDateUtc.ToLocalTime() }.Max().Date; - while (start.DayOfYear <= end.Day) + while (start <= end) { dates.Add(start.ToString("yyyy-MM-dd")); start = start.AddDays(1);