aboutsummaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2020-02-13 23:58:45 +0100
committerHugo Hörnquist <hugo@hornquist.se>2020-02-13 23:58:45 +0100
commit0a0b92dee4e1f8108673590fe4794c7edd34e3c9 (patch)
tree9ec0068a05a31c58e9e2430be4e32e9a908d0b83 /module
parentAdd missing hour to time->decimal-hour. (diff)
downloadcalp-0a0b92dee4e1f8108673590fe4794c7edd34e3c9.tar.gz
calp-0a0b92dee4e1f8108673590fe4794c7edd34e3c9.tar.xz
Remove in-day?
Diffstat (limited to 'module')
-rw-r--r--module/output/html.scm2
-rw-r--r--module/srfi/srfi-19/alt/util.scm4
2 files changed, 3 insertions, 3 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index 46abfdb6..4bb12b45 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -79,7 +79,7 @@
(* 100 (width ev)) ; width
;; top
- (if (in-day? date (attr ev 'DTSTART))
+ (if (date= date (as-date (attr ev 'DTSTART)))
(* 100/24
(time->decimal-hour
(as-time (attr ev 'DTSTART))
diff --git a/module/srfi/srfi-19/alt/util.scm b/module/srfi/srfi-19/alt/util.scm
index 8299c6cb..e81baa26 100644
--- a/module/srfi/srfi-19/alt/util.scm
+++ b/module/srfi/srfi-19/alt/util.scm
@@ -158,8 +158,8 @@
;; given by @var{base-date}.
;; TODO test time zones
;; date x datetime → bool
-(define-public (in-day? base-date date/-time)
- (date< base-date (as-date date/-time) (date+ base-date (date day: 1))))
+;; (define-public (in-day? base-date date/-time)
+;; (date< base-date (as-date date/-time) (date+ base-date (date day: 1))))
(define-public (in-date-range? start-date end-date)
(lambda (date)