From 9d471cd6cdd182c01bb6d7a7c7e0318a2daa3372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 29 Mar 2020 23:25:20 +0200 Subject: Clarify error on bad RRULE's. --- module/vcomponent/recurrence/parse.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module/vcomponent/recurrence/parse.scm') diff --git a/module/vcomponent/recurrence/parse.scm b/module/vcomponent/recurrence/parse.scm index a93b81df..97e5e980 100644 --- a/module/vcomponent/recurrence/parse.scm +++ b/module/vcomponent/recurrence/parse.scm @@ -48,8 +48,9 @@ `(else ,@body))) cases)))) -;; UNTIL must have the exact same value type as the DTSTART of the event from which -;; this string came. I have however seen exceptions to that rule... +;; RFC 5545, Section 3.3.10. Recurrence Rule, states that the UNTIL value MUST have +;; the same type as the DTSTART of the event (date or datetime). I have seen events +;; in the wild which didn't follow this. I consider that an user error. (define* (parse-recurrence-rule str optional: (datetime-parser parse-datetime)) (fold (lambda (kv o) -- cgit v1.2.3