From 5ba5073bd7ad2f6c1ba721b0950e33a23b009f9c Mon Sep 17 00:00:00 2001 From: Andrey Dolzhikov Date: Thu, 5 Sep 2024 06:34:17 -0400 Subject: [PATCH] T1250739 --- .../workspaces/view_model/m_view_data_generator_month.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_month.ts b/packages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_month.ts index 20b5e5ad5137..fcbfe9953d25 100644 --- a/packages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_month.ts +++ b/packages/devextreme/js/__internal/scheduler/workspaces/view_model/m_view_data_generator_month.ts @@ -12,6 +12,7 @@ import { ViewDataGenerator } from './m_view_data_generator'; const toMs = dateUtils.dateToMilliseconds; const DAYS_IN_WEEK = 7; +const HOUR_MS = toMs('hour'); export class ViewDataGeneratorMonth extends ViewDataGenerator { _minVisibleDate: any; @@ -35,7 +36,9 @@ export class ViewDataGeneratorMonth extends ViewDataGenerator { data.today = this.isCurrentDate(startDate, indicatorTime, timeZoneCalculator); data.otherMonth = this.isOtherMonth(startDate, this._minVisibleDate, this._maxVisibleDate); data.firstDayOfMonth = isFirstCellInMonthWithIntervalCount(startDate, intervalCount); - data.text = monthUtils.getCellText(startDate, intervalCount); + + const midday = new Date(startDate.getTime() + 12 * HOUR_MS); + data.text = monthUtils.getCellText(midday, intervalCount); return data; }