marcbelletre/acf-rrule

Issue with DTEND

wuebkers opened this issue · 2 comments

Hey, I have been using this plugin and things have been great, but I am getting this error randomly today and I am hoping you can help resolve this:
parsestring.js:98 Uncaught (in promise) Error: Unknown RRULE property 'DTEND'

Screenshot 2023-11-15 at 12 44 43 PM

Everything looks right in my CMS:
Screenshot 2023-11-15 at 12 45 28 PM

Hi @wuebkers,

I just answered your support question on Wordpress.org.

It looks like you're using a Javascript library that does not support the DTEND property (I would guess this one?)

This incompatibility with the rrule.js library must have been introduced by this change. It looks like this changed has never been tagged until several months later in v1.3.0. I will have to take a deeper look at it to understand why it has been introduced. In the meantime can you try to roll back to v1.2.5?

I just removed the DTEND attribute from the generated RRULE string which appeared to be completely unnecessary. The RRULE string already contains the UNTIL attribute with the exact same value.

In order to ensure backwards compatibility with previous versions of the plugin where DTEND attribute was not implemented, the attribute is automatically removed from the string if it exists in database (see here).

Latest release v1.3.4 has been pushed to packagist.org and Wordpress plugin repository 🚀