aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/ical/output.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-17 18:13:58 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-17 18:13:58 +0200
commitc1cbef6611df9c8918fee8699b5867d8a54ac810 (patch)
tree46ab04d457eda5e7c0873efe3480d5c68ef1d4c2 /module/vcomponent/ical/output.scm
parentGot type files out of output. (diff)
downloadcalp-c1cbef6611df9c8918fee8699b5867d8a54ac810.tar.gz
calp-c1cbef6611df9c8918fee8699b5867d8a54ac810.tar.xz
even more.
Diffstat (limited to 'module/vcomponent/ical/output.scm')
-rw-r--r--module/vcomponent/ical/output.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/module/vcomponent/ical/output.scm b/module/vcomponent/ical/output.scm
index eead035b..ff5465c6 100644
--- a/module/vcomponent/ical/output.scm
+++ b/module/vcomponent/ical/output.scm
@@ -199,6 +199,15 @@ CALSCALE:GREGORIAN\r
(define (print-footer)
(format #t "END:VCALENDAR\r\n"))
+(define (get-tz-names events)
+ (lset-difference
+ equal? (lset-union
+ equal? '("dummy")
+ (filter-map
+ (lambda (vline) (and=> (param vline 'TZID) car))
+ (filter-map (extract* 'DTSTART)
+ events)))
+ '("dummy" "local")))
(define-public (print-components-with-fake-parent events)