diff --git a/src/cal-period.scm b/src/cal-period.scm index eb5dd7e..3fa1dd4 100644 --- a/src/cal-period.scm +++ b/src/cal-period.scm @@ -186,10 +186,12 @@ (define (cal-month-in-period? p . ml) (let ((m (if (null? ml) (*current-month*) - (car ml)))) - (and (or (not (cal-period-before p)) - (cal-monthmonth v stop?s))) + (if v + (if (cal-month? v) + v + (apply cal-day->month v stop?s)) + #f)) ;; Performs self-tests of the period module. (define (cal-period-tests!)