mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix schedules direct request dates
This commit is contained in:
parent
d54fe95839
commit
040c0ea21a
@ -48,10 +48,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
|||||||
{
|
{
|
||||||
List<string> dates = new List<string>();
|
List<string> dates = new List<string>();
|
||||||
|
|
||||||
var start = new List<DateTime> { startDateUtc, startDateUtc.ToLocalTime() }.Min();
|
var start = new List<DateTime> { startDateUtc, startDateUtc.ToLocalTime() }.Min().Date;
|
||||||
var end = new List<DateTime> { endDateUtc, endDateUtc.ToLocalTime() }.Max();
|
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"));
|
dates.Add(start.ToString("yyyy-MM-dd"));
|
||||||
start = start.AddDays(1);
|
start = start.AddDays(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user