From 42538075af84c4589a338f333471f3e8ee6fff82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 24 Mar 2020 22:56:49 +0100 Subject: Add comment about DST and create-top-block. --- module/output/html.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'module') 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 -- cgit v1.2.3