aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/timezone.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-10-06 13:35:20 +0200
committerHugo Hörnquist <hugo@hornquist.se>2019-10-06 13:35:20 +0200
commitfeefb97cf9118c8e5d7018e33887a371dadc5eab (patch)
tree33c42222df642813b726f5cc085d0d3569e441a1 /module/vcomponent/timezone.scm
parentRemove old C code. (diff)
downloadcalp-feefb97cf9118c8e5d7018e33887a371dadc5eab.tar.gz
calp-feefb97cf9118c8e5d7018e33887a371dadc5eab.tar.xz
Minor cleanup in scheme code.
Diffstat (limited to '')
-rw-r--r--module/vcomponent/timezone.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/vcomponent/timezone.scm b/module/vcomponent/timezone.scm
index 4a312288..dde32cc2 100644
--- a/module/vcomponent/timezone.scm
+++ b/module/vcomponent/timezone.scm
@@ -68,7 +68,8 @@
;; Crashes on error.
(define (find-tz cal tzid)
(let ((ret (find (lambda (tz) (string=? tzid (attr tz 'TZID)))
- (children cal 'VTIMEZONE))))
+ (filter (lambda (o) (eq? 'VTIMEZONE (type o)))
+ (children cal)))))
ret))
;; Takes a VEVENT.