feat(dal): templateDistributor теперь распределяет с учетом московского времени

This commit is contained in:
Mikhail Trubnikov
2026-01-28 16:19:19 +10:00
parent 76bd6aa111
commit 3b7213182c
4 changed files with 70 additions and 62 deletions

View File

@@ -309,13 +309,13 @@ namespace PARR.DAL.NextRunServices
public async Task<List<DateOnly>> GetWorkDaysAsync(DateOnly start, DateOnly end, bool excludeWeekends, DateTimeOffset referenceDate)
{
//return await templateDistributor.GetWorkDaysAsync(start, end, excludeWeekends);
return await templateDistributor.GetWorkDaysTESTAsync(start, end, excludeWeekends, referenceDate);
return await templateDistributor.GetWorkDaysV2Async(start, end, excludeWeekends, referenceDate);
}
public async Task<HashSet<DateOnly>> GetWeekendsAsync(DateOnly startDate, DateOnly endDate, DateTimeOffset referenceDate)
{
return await templateDistributor.GetWeekendsTESTAsync(startDate, endDate, referenceDate);
return await templateDistributor.GetWeekendsV2Async(startDate, endDate, referenceDate);
}
}
}