@forcecalendar/core 2.1.15 → 2.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -345,8 +345,16 @@ export class RecurrenceEngine {
|
|
|
345
345
|
}
|
|
346
346
|
return exceptionDate.toDateString() === dateStr;
|
|
347
347
|
}
|
|
348
|
-
// Simple date exception
|
|
348
|
+
// Simple date exception — if the exception has a specific time component
|
|
349
|
+
// (not midnight), match by timestamp to avoid excluding all occurrences on that day
|
|
349
350
|
const exceptionDate = exDate instanceof Date ? exDate : new Date(exDate);
|
|
351
|
+
const hasTime =
|
|
352
|
+
exceptionDate.getHours() !== 0 ||
|
|
353
|
+
exceptionDate.getMinutes() !== 0 ||
|
|
354
|
+
exceptionDate.getSeconds() !== 0;
|
|
355
|
+
if (hasTime) {
|
|
356
|
+
return Math.abs(exceptionDate.getTime() - dateTime) < 1000;
|
|
357
|
+
}
|
|
350
358
|
return exceptionDate.toDateString() === dateStr;
|
|
351
359
|
});
|
|
352
360
|
}
|