From 44ca687309df06d3006ecec54e3e3f18e7547c05 Mon Sep 17 00:00:00 2001 From: Leulz Date: Wed, 27 Sep 2023 20:09:35 -0300 Subject: [PATCH] Fix deprecated use of DateTime::from_utc() --- wkt-types/src/pbtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wkt-types/src/pbtime.rs b/wkt-types/src/pbtime.rs index 23defce..ffa89c6 100644 --- a/wkt-types/src/pbtime.rs +++ b/wkt-types/src/pbtime.rs @@ -42,7 +42,7 @@ impl From for DateTime { value.normalize(); let dt = NaiveDateTime::from_timestamp_opt(value.seconds, value.nanos as u32) .expect("invalid or out-of-range datetime"); - DateTime::from_utc(dt, Utc) + DateTime::from_naive_utc_and_offset(dt, Utc) } }