Merge pull request #1254 from MediaBrowser/master

merge from master
This commit is contained in:
Luke 2015-11-11 21:45:46 -05:00
commit 107315f59d
1 changed files with 3 additions and 3 deletions

View File

@ -48,10 +48,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
{
List<string> dates = new List<string>();
var start = new List<DateTime> { startDateUtc, startDateUtc.ToLocalTime() }.Min();
var end = new List<DateTime> { endDateUtc, endDateUtc.ToLocalTime() }.Max();
var start = new List<DateTime> { startDateUtc, startDateUtc.ToLocalTime() }.Min().Date;
var end = new List<DateTime> { endDateUtc, endDateUtc.ToLocalTime() }.Max().Date;
while (start.DayOfYear <= end.Day)
while (start <= end)
{
dates.Add(start.ToString("yyyy-MM-dd"));
start = start.AddDays(1);