From d099afff43a433e4fa4369ded009ce33fdf08c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 25 Apr 2020 22:30:49 +0200 Subject: Slightly improve display of EXDATES. --- module/output/html.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/module/output/html.scm b/module/output/html.scm index 06cd91ee..20bdd1da 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -378,9 +378,14 @@ (map (lambda (d) (if (date? d) ;; TODO show year? (date->string d "~e ~b") - ;; TODO only show time when it's different than the start time? + ;; NOTE only show time when it's different than the start time? ;; or possibly only when FREQ is hourly or lower. - (datetime->string d "~e ~b ~k:~M"))) + (if (memv ((@ (vcomponent recurrence internal ) freq) ((@ (vcomponent recurrence parse) + parse-recurrence-rule) + (attr ev 'RRULE))) + '(HOURLY MINUTELY SECONDLY)) + (datetime->string d "~e ~b ~k:~M") + (datetime->string d "~e ~b")))) it)))) ".")) ,(when (attr ev 'LAST-MODIFIED) -- cgit v1.2.3