FIX use correct length of range
This commit is contained in:
parent
6f38362d76
commit
966576ab1a
|
@ -66,7 +66,7 @@ compareDate (In md offset) x = case fromMatchYMD md of
|
|||
(y, m, _) = toGregorian x
|
||||
compareRange start z
|
||||
| z < start = LT
|
||||
| otherwise = if (start + fromIntegral offset) < z then GT else EQ
|
||||
| otherwise = if (start + fromIntegral offset - 1) < z then GT else EQ
|
||||
toMonth year month = (year * 12) + fromIntegral month
|
||||
|
||||
dateMatches :: MatchDate -> Day -> Bool
|
||||
|
|
Loading…
Reference in New Issue