question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rrule exdate with only a date does not work if dtstart includes a time

See original GitHub issue

Reduced Test Case

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)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
Krzysiaczekcommented, Jul 28, 2021

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.

2reactions
successful-fellacommented, Jul 19, 2021

Hi, I’m facing this same issue. @floatingpurr thanks for the workaround!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is EXDATE not included in rrule for Full Calendar
OK I worked it out, @Arnaud is right, RRULE, EXDATE and DTSTART are properties not parameters of rrule, BUT they do go in...
Read more >
3.8.5.1. Exception Date-Times | iCalendar (RFC 5545)
This property defines the list of DATE-TIME exceptions for recurring ... a "DTSTART" property value that doesn't match the pattern of the rule...
Read more >
rrule — dateutil 2.8.2 documentation - Read the Docs
Include the given datetime instance in the recurrence set exclusion list. Dates included that way will not be generated, even if some inclusive...
Read more >
The Deceptively Complex World of RRULEs in Calendar Events
Learn how to work with repeating calendar events, from RFC-5545 and ... You'll notice the EXDATE is in fact a datetime (not just...
Read more >
rfc5545.txt - » RFC Editor
This document may contain material from IETF Documents or IETF ... Furthermore, if the "DTSTART" property is specified as a date with local...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found