From d526b378406ace55163850f5cd22da3be62c4720 Mon Sep 17 00:00:00 2001 From: Theo Butler Date: Tue, 17 Oct 2023 12:16:05 -0400 Subject: [PATCH] fix: replace deprecated function call --- graph-subscriptions-rs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph-subscriptions-rs/src/lib.rs b/graph-subscriptions-rs/src/lib.rs index 92df68f..0c6185c 100644 --- a/graph-subscriptions-rs/src/lib.rs +++ b/graph-subscriptions-rs/src/lib.rs @@ -178,7 +178,7 @@ impl TryFrom<(u64, u64, u128)> for Subscription { let to_datetime = |t: u64| { NaiveDateTime::from_timestamp_opt(t.try_into()?, 0) .ok_or_else(|| anyhow!("invalid timestamp")) - .map(|t| DateTime::::from_utc(t, Utc)) + .map(|t| DateTime::::from_naive_utc_and_offset(t, Utc)) }; let start = to_datetime(start)?; let end = to_datetime(end)?;