Skip to content

Commit

Permalink
Permit single digit century
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Dec 16, 2024
1 parent 4dab4a7 commit 0a50218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time/src/parsing/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub(crate) fn parse_year(
None
} else {
let ParsedItem(input, year) =
exactly_n_digits_padded::<2, u32>(modifiers.padding)(input)?;
n_to_m_digits_padded::<1, 2, u32>(modifiers.padding)(input)?;
Some(ParsedItem(input, (year.cast_signed(), false)))
}
}
Expand Down

0 comments on commit 0a50218

Please sign in to comment.