You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
REDUCED TEST CASE
.
Bug Description
According to the
official doc
of FullCalendar, you can use the key
exdate
(
rrule
plugin) to exclude a specific day from a recurring event pattern. This is my case:
"title": "Foo",
"rrule": {
"freq": "weekly",
"byweekday": ["TH"],
"dtstart": "2021-01-01T08:00:00",
"duration": {"minutes": 600},
"exdate": ["2021-01-22"],
I would expect that the recurring event does not happen on 2021-01-22. But such a piece of code does not work (i.e., I can still see the recurring event
Foo
on
2021-01-22
).
The only way to fix I've found so far is using the same date and time I used in
dtstart
. I.e.,
"exdate": ["2021-01-01T08:00:00"]
.
Screenshots
(see the
REDUCED TEST CASE
)
According to the rrule docs,
exdate
should be a "datetime", it seems they don't support supplying a date only.
https://github.com/jakubroztocil/rrule#rrulesetprototypeexdatedt
Hi
@acerix
, thanx for you reply!
In my opinion, it is not just a matter of datatype. As is stated in Full Calendar docs, you can add events and exceptions using
dates
like the following:
title
:
'my recurring event'
,
rrule
:
{
freq
:
'weekly'
,
dtstart
:
'2012-02-01'
exdate
:
[
'2012-02-08'
]
// will also accept a single string
And it works:
https://codepen.io/floatingpurr/pen/xxRGBYe
changed the title
FullCalendar and recurring events (rrule plugin): exdate does not exclude days using a different date format
Rrule exdate with only a date does not work if dtstart includes a time
Feb 4, 2021
Hi there
I've got the same problem, but instead, I am trying to use
exrule
instead of
exdate
, which do not make any difference.
Check this out
https://codepen.io/krzysztof-d/pen/KKmQZeq
It works only with full days; any reference to the time is breaking this up
Can someone provide a solution, as this is a huge blocker, please?
I've just spent the whole day rewriting the definition of the recurring events to use those
rrule
just to be able to use the exception from those repetitions, and it seems like this has been nothing but the waste of time :-(
I see that you've added this to the upcoming-release which was the right move but later took it off :-(
For anyone interested I was able to make it work by repeating the same time sequence in the exception rule so in the case of Andrea's Pen case it's
"exdate": ["2021-01-22T08:00:00"],
which will make it work, I've updated my own Pen case as well.
I think the bug is still worth fixing as adding any other time like 07:00 make it broken as well.
Hello everyone,
I've encountered a similar problem you discussed too, so attempted to resolve this problem on my own but have been unsuccessful thus far. After reading your discussions, it seems that you encountered a similar issue and may have insights or solutions that could be helpful.
Thank you in advance for your support. I look forward to hearing from you and finding a resolution to this problem.
Best regards
Discussion Link
Hello everyone,
I've encountered a similar problem you discussed too, so attempted to resolve this problem on my own but have been unsuccessful thus far. After reading your discussions, it seems that you encountered a similar issue and may have insights or solutions that could be helpful.
Thank you in advance for your support. I look forward to hearing from you and finding a resolution to this problem.
Best regards
Discussion Link
Put the
exdate
in the same format as your
dtstart
For the time, just take the same as your
dtstart
That's the only way to make it works for me