Skip to content

Commit

Permalink
remove use of deprecated chronos and_hms
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Wrock <[email protected]>
  • Loading branch information
mwrock committed May 22, 2024
1 parent cc355fc commit 43e0c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/builder-api/src/server/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,6 @@ mod ymd_date_format {
{
let s = String::deserialize(deserializer)?;
let naive_date = NaiveDate::parse_from_str(&s, FORMAT).unwrap();
Ok(naive_date.and_hms(0, 0, 0))
Ok(naive_date.and_hms_opt(0, 0, 0).unwrap())
}
}

0 comments on commit 43e0c86

Please sign in to comment.