From 16574a005ca5b01b2161aba4b692028578d3778c Mon Sep 17 00:00:00 2001 From: Ivan Druzhitskiy Date: Thu, 7 Sep 2023 16:08:24 +0300 Subject: [PATCH 1/2] fix deprecated warning --- bob-backend/src/pearl/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob-backend/src/pearl/utils.rs b/bob-backend/src/pearl/utils.rs index 72b1569c3..98b8f1d59 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, ); From f4461d4d7343ec3eec56ea8f92d91fe62c8f7c5b Mon Sep 17 00:00:00 2001 From: Ivan Druzhitskiy Date: Thu, 7 Sep 2023 16:09:16 +0300 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1313d545..5388f0ae7 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)