From 8feaadc162faa7e9da6443c62fbfa11bd2aebe91 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sun, 8 Jun 2025 20:07:09 +0300 Subject: [PATCH] calendar reRender date fix --- client/modules/crm/src/views/calendar/calendar.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/modules/crm/src/views/calendar/calendar.js b/client/modules/crm/src/views/calendar/calendar.js index af8821ba4c..0bb103a0f3 100644 --- a/client/modules/crm/src/views/calendar/calendar.js +++ b/client/modules/crm/src/views/calendar/calendar.js @@ -930,12 +930,9 @@ class CalendarView extends View { }); }, datesSet: () => { - const date = this.getDateTime().fromIso(this.calendar.getDate().toISOString()); - const m = this.dateToMoment(this.calendar.getDate()); + this.date = this.dateToMoment(this.calendar.getDate()).format('YYYY-MM-DD'); - this.date = date; - - this.trigger('view', m.format('YYYY-MM-DD'), this.mode); + this.trigger('view', this.date, this.mode); }, events: (info, callback) => { const dateTimeFormat = this.getDateTime().internalDateTimeFormat;