diff --git a/CHANGELOG.md b/CHANGELOG.md index a1313d54..5388f0ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Bob versions changelog #### Fixed - Fix memory leak due to prometheus lib (#788) - Fix for grinder delete metrics not being initialized (#824) +- Fix chrono deprecated function warning (#832) #### Updated - Pearl updated to v0.19.0 (#798) diff --git a/bob-backend/src/pearl/utils.rs b/bob-backend/src/pearl/utils.rs index 72b1569c..98b8f1d5 100755 --- a/bob-backend/src/pearl/utils.rs +++ b/bob-backend/src/pearl/utils.rs @@ -93,7 +93,7 @@ impl Utils { Error::failed(format!("smth wrong with time: {:?}, error: {}", period, e)) }) .map(|period| { - let time = DateTime::from_utc( + let time = DateTime::from_naive_utc_and_offset( NaiveDateTime::from_timestamp_opt(time.try_into().unwrap(), 0).expect("time out of range"), Utc, );