aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-24 22:56:49 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-24 22:56:49 +0100
commit42538075af84c4589a338f333471f3e8ee6fff82 (patch)
treebcc802aa6110fc7745e80e560e1d57772edf5331
parentAllow nameless calendars again. (diff)
downloadcalp-42538075af84c4589a338f333471f3e8ee6fff82.tar.gz
calp-42538075af84c4589a338f333471f3e8ee6fff82.tar.xz
Add comment about DST and create-top-block.
-rw-r--r--module/output/html.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index 133b3d1e..70c9f17c 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -182,6 +182,10 @@
)
+;; date{,time}-difference works in days, and days are simply multiplied by 24 to get hours.
+;; This means that a day is always assumed to be 24h, even when that's wrong. This might lead
+;; to some weirdness when the timezon switches (DST), but it makes everything else behave MUCH
+;; better.
(define (create-top-block start-date end-date ev)
;; NOTE be vary of api changes to date-diffenence