]> git.eshelyaron.com Git - emacs.git/commit
Fix DTSTART date when exporting `diary-float'
authorRichard Lawrence <rwl@recursewithless.net>
Sun, 11 May 2025 05:47:42 +0000 (07:47 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 May 2025 20:52:40 +0000 (22:52 +0200)
commita34ee34dae491d3969f5fba6b7c20913994b922e
tree1fb129af2ab6a10239f1c6588421c36475706b44
parentccf47bfacd76974911f8be3e36e5016eadeca27b
Fix DTSTART date when exporting `diary-float'

Instead of using current date as DTSTART and then excluding it
when it doesn't match the `diary-float' rule, just use the first
date which matches the rule in `icalendar-recurring-start-year'.
* lisp/calendar/icalendar.el (icalendar--convert-float-to-ical):
Compute the correct date.
* test/lisp/calendar/icalendar-tests.el: Add a test for the
reported test case.  (Bug#78085)

(cherry picked from commit c1153963b5db351d3fbe8f661e17efb55ebb2cb8)
lisp/calendar/icalendar.el
test/lisp/calendar/icalendar-tests.el