Skip to content

Commit bdbddc3

Browse files
authored
Scheduler: remove exceptionDate from appointment settings (DevExpress#30804)
1 parent 439e5db commit bdbddc3

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

packages/devextreme/js/__internal/scheduler/appointments/m_settings_generator.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ export class DateGeneratorBaseStrategy {
167167

168168
return {
169169
...item,
170-
// TODO: Check usages & delete this field.
171-
exceptionDate: new Date(item.startDate),
172170
};
173171
});
174172

@@ -235,8 +233,6 @@ export class DateGeneratorBaseStrategy {
235233
...item,
236234
startDate: newStartDate,
237235
endDate: newEndDate,
238-
// TODO: Check usages & delete this field.
239-
exceptionDate: new Date(newStartDate),
240236
};
241237
});
242238
}
@@ -318,7 +314,6 @@ export class DateGeneratorBaseStrategy {
318314
if (offsetDifference !== 0 && this._canProcessNotNativeTimezoneDates(appointmentAdapter)) {
319315
source.startDate = dateUtilsTs.addOffsets(source.startDate, [offsetDifference * toMs('minute')]);
320316
source.endDate = dateUtilsTs.addOffsets(source.endDate, [offsetDifference * toMs('minute')]);
321-
source.exceptionDate = new Date(source.startDate);
322317
}
323318

324319
const duration = source.endDate.getTime() - source.startDate.getTime();

packages/devextreme/js/__internal/scheduler/m_subscribes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ const subscribes = {
5959

6060
updateAppointmentAfterResize(options) {
6161
const info = utils.dataAccessors.getAppointmentInfo(options.$appointment);
62-
const { exceptionDate } = info.sourceAppointment;
62+
const { startDate } = info.sourceAppointment;
6363

64-
this._checkRecurringAppointment(options.target, options.data, exceptionDate, () => {
64+
this._checkRecurringAppointment(options.target, options.data, startDate, () => {
6565
this._updateAppointment(options.target, options.data, function () {
6666
this._appointments.moveAppointmentBack();
6767
});

0 commit comments

Comments
 (0)