aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/timezone.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/vcomponent/timezone.scm')
-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.