From 4c0e40b75ba7c0ec1ee18eb577418f2ea5199a60 Mon Sep 17 00:00:00 2001 From: Andrew G Cohen Date: Thu, 16 Mar 2023 18:43:35 +0800 Subject: [PATCH] Allow null date in gnus-icalendar-event--decode-datefield * lisp/gnus/gnus-icalendar.el: (gnus-icalendar-event--decode-datefield): Don't throw an error if the event date is missing. --- lisp/gnus/gnus-icalendar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/gnus/gnus-icalendar.el b/lisp/gnus/gnus-icalendar.el index 0d776cd1bca..adbc39547ff 100644 --- a/lisp/gnus/gnus-icalendar.el +++ b/lisp/gnus/gnus-icalendar.el @@ -165,7 +165,7 @@ (icalendar--get-event-property-attributes event field) zone-map)) (dtdate-dec (icalendar--decode-isodatetime dtdate nil dtdate-zone))) - (encode-time dtdate-dec))) + (when dtdate-dec (encode-time dtdate-dec)))) (defun gnus-icalendar-event--find-attendee (ical name-or-email) (let* ((event (car (icalendar--all-events ical))) -- 2.39.2