summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew G Cohen <cohen@andy.bu.edu>2023-03-16 18:43:35 +0800
committerAndrew G Cohen <cohen@andy.bu.edu>2023-04-01 09:55:41 +0800
commit4c0e40b75ba7c0ec1ee18eb577418f2ea5199a60 (patch)
treed9d1299a1a85a8af4939cdaa468170f199ee4296
parent2c9ea31999d2f69f8bca4fe352dd0f74c6766c54 (diff)
downloademacs-4c0e40b75ba7c0ec1ee18eb577418f2ea5199a60.tar.gz
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.
-rw-r--r--lisp/gnus/gnus-icalendar.el2
1 files changed, 1 insertions, 1 deletions
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)))