diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-25 22:30:49 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-25 22:30:49 +0200 |
commit | d099afff43a433e4fa4369ded009ce33fdf08c18 (patch) | |
tree | 64dc725291a2df8cc6ddf52e32deb925e773b909 /module/output | |
parent | Add some TODO items. (diff) | |
download | calp-d099afff43a433e4fa4369ded009ce33fdf08c18.tar.gz calp-d099afff43a433e4fa4369ded009ce33fdf08c18.tar.xz |
Slightly improve display of EXDATES.
Diffstat (limited to '')
-rw-r--r-- | module/output/html.scm | 9 |
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) |