When creating cal-period, ensure months for periods.

This commit is contained in:
Dominik Pantůček 2024-09-10 18:49:19 +02:00
parent 065d406e9c
commit 488499cf23

View file

@ -138,7 +138,10 @@
(not (null? (cdr args)))) (not (null? (cdr args))))
(cadr args) (cadr args)
#f))) #f)))
(list TAG-CAL-PERIOD since before scomment bcomment))) (list TAG-CAL-PERIOD
(if since (cal-ensure-month since) since)
(if before (cal-ensure-month before) before)
scomment bcomment)))
;; Simple accessors ;; Simple accessors
(define cal-period-since cadr) (define cal-period-since cadr)