Skip to content

Commit

Permalink
Merge pull request #2425 from artichoke/b-n/time-allows-60-secs
Browse files Browse the repository at this point in the history
TimeArgs seconds should support 0..=60
  • Loading branch information
b-n committed Feb 22, 2023
2 parents 98bdd84 + c35a6fe commit 80f09dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artichoke-backend/src/extn/core/time/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl TryConvertMut<&mut [Value], Args> for Artichoke {
let arg: i64 = arg.try_convert_into(self)?;

result.second = match u8::try_from(arg) {
Ok(second @ 0..=59) => second,
Ok(second @ 0..=60) => second,
_ => return Err(ArgumentError::with_message("sec out of range").into()),
};
}
Expand Down

0 comments on commit 80f09dc

Please sign in to comment.