From 17448e13fd5282ad0c9afd98207dc8b7e2d30c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 22 May 2020 23:55:38 +0200 Subject: date= and time= now work. --- module/datetime.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/datetime.scm') diff --git a/module/datetime.scm b/module/datetime.scm index 1553bad8..de573c2e 100644 --- a/module/datetime.scm +++ b/module/datetime.scm @@ -205,7 +205,8 @@ (define-public (date= . args) (reduce (lambda (a b) - (and (= (year a) (year b)) + (and b ; did a previous iteration return false? + (= (year a) (year b)) (= (month a) (month b)) (= (day a) (day b)) ;; return object @@ -214,7 +215,8 @@ (define-public (time= . args) (reduce (lambda (a b) - (and (= (hour a) (hour b)) + (and b + (= (hour a) (hour b)) (= (minute a) (minute b)) (= (second a) (second b)) a)) -- cgit v1.2.3