aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/recurrence
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-31 00:38:00 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-31 00:38:00 +0200
commit4889e9fc9d4756803c0eb7f700ecd32fcfa61404 (patch)
treea98ab11468a651e113687bf462f47abdafb243ba /module/vcomponent/recurrence
parentFixed minor errors in HTML output. (diff)
downloadcalp-4889e9fc9d4756803c0eb7f700ecd32fcfa61404.tar.gz
calp-4889e9fc9d4756803c0eb7f700ecd32fcfa61404.tar.xz
Rename parse-date to parse-ics-date, add parse-iso-date.
Diffstat (limited to 'module/vcomponent/recurrence')
-rw-r--r--module/vcomponent/recurrence/generate.scm2
-rw-r--r--module/vcomponent/recurrence/parse.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/vcomponent/recurrence/generate.scm b/module/vcomponent/recurrence/generate.scm
index ee59ed04..c03a935a 100644
--- a/module/vcomponent/recurrence/generate.scm
+++ b/module/vcomponent/recurrence/generate.scm
@@ -159,7 +159,7 @@
event (parse-recurrence-rule
(attr event "RRULE")
(if (date? (attr event 'DTSTART))
- parse-date parse-datetime)))
+ parse-ics-date parse-ics-datetime)))
;; TODO some events STANDARD and DAYLIGT doesn't have RRULE's, but rather
;; just mention the current part. Handle this
stream-null))))
diff --git a/module/vcomponent/recurrence/parse.scm b/module/vcomponent/recurrence/parse.scm
index 97e5e980..00d9fcdb 100644
--- a/module/vcomponent/recurrence/parse.scm
+++ b/module/vcomponent/recurrence/parse.scm
@@ -51,7 +51,7 @@
;; 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))
+(define* (parse-recurrence-rule str optional: (datetime-parser parse-ics-datetime))
(fold
(lambda (kv o)
(let* (((key val) kv))