]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow null date in gnus-icalendar-event--decode-datefield
authorAndrew G Cohen <cohen@andy.bu.edu>
Thu, 16 Mar 2023 10:43:35 +0000 (18:43 +0800)
committerAndrew G Cohen <cohen@andy.bu.edu>
Sat, 1 Apr 2023 01:55:41 +0000 (09:55 +0800)
* 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

index 0d776cd1bcaf2aec97241cf16bdddaf53c635986..adbc39547ff1172c1ba7f15ef3528a00c94f7e77 100644 (file)
                        (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)))