aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-23 01:04:56 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-23 01:04:56 +0100
commit8fe0499b6f3cf62e13a42fd7e12080b3b7b5171e (patch)
treecebe70be3e8cdef4539fc651b083973de47a6f6d /module/vcomponent
parentHopefully fixed events-between. (diff)
downloadcalp-8fe0499b6f3cf62e13a42fd7e12080b3b7b5171e.tar.gz
calp-8fe0499b6f3cf62e13a42fd7e12080b3b7b5171e.tar.xz
Minor cleanup.
Diffstat (limited to 'module/vcomponent')
-rw-r--r--module/vcomponent/output.scm9
1 files changed, 3 insertions, 6 deletions
diff --git a/module/vcomponent/output.scm b/module/vcomponent/output.scm
index d142e922..e95574ac 100644
--- a/module/vcomponent/output.scm
+++ b/module/vcomponent/output.scm
@@ -10,6 +10,7 @@
#:export (print-vcomponent
serialize-vcomponent))
+;;; TODO this is broken,2020-03-22
(define* (print-vcomponent comp #:optional (port #t) #:key (descend? #t) (depth 0))
(let ((kvs (map (lambda (key) (cons key (attr* comp key)))
(attributes comp))))
@@ -68,13 +69,9 @@ Removes the X-HNH-FILENAME attribute, and sets PRODID to
(case key
((DTSTART DTEND)
(cond [(string? value) value]
- [(date? value) (date->string value "~H~M~S")]
+ [(date? value) (date->string value "~Y~m~d")]
[(datetime? value)
- (string-append
- (date->string (get-date value) "~Y~m~d")
- "T"
- (time->string (get-time value) "~H~M~S" ; ~z
- ))]))
+ (datetime->string value)]))
((X-HNH-DURATION)
(format #f "~s" value))
(else value)))))