"Timo E." <ten...@mailbox.org> writes: > the iCalendar export seems wrong when the .org file contains events > with diary-float. > > For example, my .org file contains: > * my appointment > %%(diary-float t 6 1) 1st Sat/month > ... > BEGIN:VEVENT > UID:DS1-ddf9e720-3c8a-4b2a-93d8-62dde9cdf5a8 > DTSTART;VALUE=DATE:20250418 > EXDATE;VALUE=DATE:20250418 > RRULE:FREQ=MONTHLY;BYDAY=1SA > SUMMARY:1st Sat/month > END:VEVENT > > DSTART and EXDATE are set to the current date. (i.e. the date when the > .ics file is created). I think DSTART should be set to the next first > Saturday of the month. EXDATE is not required, as there are no > exceptions specified.
Note that Org mode simply uses icalendar functionality to export diary sexps. Specifically, `icalendar--convert-float-to-ical' is responsible for what you are seeing and the logic appears to be deliberate. > RFC 5545 says in 3.8.5.3. Recurrence Rule > "The "DTSTART" property value SHOULD be synchronized with the > recurrence rule, if specified. The recurrence set generated with a > "DTSTART" property value not synchronized with the recurrence rule is > undefined." SHOULD is not MUST, so it is not too bad. However, may you report this to Emacs via M-x report-emacs-bug? The problem is not on Org mode side in this case. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>