aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-25 22:30:49 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-25 22:30:49 +0200
commitd099afff43a433e4fa4369ded009ce33fdf08c18 (patch)
tree64dc725291a2df8cc6ddf52e32deb925e773b909
parentAdd some TODO items. (diff)
downloadcalp-d099afff43a433e4fa4369ded009ce33fdf08c18.tar.gz
calp-d099afff43a433e4fa4369ded009ce33fdf08c18.tar.xz
Slightly improve display of EXDATES.
-rw-r--r--module/output/html.scm9
1 files 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)