feat(bll): CalnedarService при подготовке списка рабочих суток учитывает разницу начала суток между UTC и МСК
This commit is contained in:
@@ -111,6 +111,7 @@ namespace PARR.TemplateDistributor
|
||||
//Готовим план распределения
|
||||
var distrPlan = GetDistributionPlan(workDays, templates.Count + existingTemplates.Count);
|
||||
|
||||
|
||||
var templateToDistrib = new List<Template>();
|
||||
|
||||
if (existingTemplates.Count > 0)
|
||||
@@ -243,7 +244,7 @@ namespace PARR.TemplateDistributor
|
||||
var periodType = ParseDistributionPeriodType(period!.Type);
|
||||
var startPeriod = await esppScheduleTransformService.GetStartPeriodForDateAsync(appInWork.Id, appInWork.ReferenceDate, appInWork.ReferenceDate, periodType, period.Duration);
|
||||
|
||||
var result = calendarService.GetWorkDatesForPeriod(startPeriod, periodType, period.Duration, weekendDayService.GetWeekends);
|
||||
var result = calendarService.GetWorkDatesForPeriod(startPeriod, TimeOnly.FromDateTime(appInWork.ReferenceDate.DateTime), periodType, period.Duration, weekendDayService.GetWeekends);
|
||||
|
||||
result.ForEach(wd =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user