aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-25 00:03:56 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-25 00:03:59 +0100
commit7b04a74a1f97a898adfc0a2147b7ea62824039ef (patch)
tree4925e5f30a21df6b4c29dd0f2bbd4341126ed544
parentMove some datetime procedures to propper modules. (diff)
downloadcalp-7b04a74a1f97a898adfc0a2147b7ea62824039ef.tar.gz
calp-7b04a74a1f97a898adfc0a2147b7ea62824039ef.tar.xz
Fix bug in date-difference.
-rw-r--r--module/datetime.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/datetime.scm b/module/datetime.scm
index aebc7433..aa9a15f1 100644
--- a/module/datetime.scm
+++ b/module/datetime.scm
@@ -609,7 +609,8 @@
(if (> (month a) (month b))
(loop (set-> b
(year = (- 1))
- (month 11))
+ (month 11)
+ (day 30))
(set (month a) = (- (month b))))
;; elif (> (month b) (month a))
(values (set (month b) = (- (month a)))