Skip to content

Commit d05fb46

Browse files
committed
allow single digit dates
1 parent 9bf9a4c commit d05fb46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Formatter/DateTime.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ unformatFParser cb = case _ of
318318
DayOfMonth a → do
319319
ds ← some digit
320320
let dom = foldDigits ds
321-
when (Arr.length ds /= 2 || dom > 31 || dom < 1) $ P.fail "Incorrect day of month"
321+
when (Arr.length ds > 2 || dom > 31 || dom < 1) $ P.fail "Incorrect day of month"
322322
lift $ modify _{day = Just dom}
323323
cb a
324324
UnixTimestamp a → do

0 commit comments

Comments
 (0)