Issue with Excluding Specific Recurring Events with a time slot (Start and End Times) #2
-
Hi everyone, I am encountering an issue when attempting to exclude specific recurring events with start and end times using the Here, reproduced my case.
events: [{
rrule: ...
...
exdate: !isSpecificEntry ? ('excluded_dates' in entry ? entry.excluded_dates : []) : [],
}] But it works only in case if the event is the full day. events: [{
rrule: ...
...
// I'd also tried only with the `exrule` alone.
exdate: !isSpecificEntry ? entry.excluded_dates : [],
exrule: !isSpecificEntry ? entry.excluded_dates.map(genExrule): [],
}]
...
const genExrule = (excluded_date: string) => {
const startDateTime = moment(excluded_date).startOf('day').format('YYYY-MM-DD HH:mm');
const endDateTime = moment(excluded_date).endOf('day').format('YYYY-MM-DD HH:mm');
return {
freq: 'weekly',
dtstart: startDateTime,
until: endDateTime
};
}; But the specified events are not being excluded as expected. The calendar continues to display the recurring events on the excluded dates. Please let me know if any further information or code samples are needed to investigate and resolve this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Put the |
Beta Was this translation helpful? Give feedback.
Put the
exdate
in the same format as yourdtstart
For the time, just take the same as your
dtstart