aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--module/srfi/srfi-19/alt.scm2
-rw-r--r--module/srfi/srfi-19/alt/util.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/srfi/srfi-19/alt.scm b/module/srfi/srfi-19/alt.scm
index 33a1bc1f..c07bcbd8 100644
--- a/module/srfi/srfi-19/alt.scm
+++ b/module/srfi/srfi-19/alt.scm
@@ -282,7 +282,7 @@
(define-values (days-fixed change*)
(let loop ((target base) (change change))
;; (format (current-error-port) "1 ~s : ~s~%" target change)
- (if (> (days-in-month target) (+ (day change) (day target)))
+ (if (>= (days-in-month target) (+ (day change) (day target)))
;; No date overflow, just add the change
(values (set-> target (day = (+ (day change))))
(set-> change (day 0)))
diff --git a/module/srfi/srfi-19/alt/util.scm b/module/srfi/srfi-19/alt/util.scm
index e81baa26..2c3be65e 100644
--- a/module/srfi/srfi-19/alt/util.scm
+++ b/module/srfi/srfi-19/alt/util.scm
@@ -7,7 +7,7 @@
)
(define-public (start-of-month date)
- (set (day date) 0))
+ (set (day date) 1))
(define-public (parse-freeform-date str)