From d3ef99e500afaad8433e56754af071599137b306 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 25 Dec 2023 00:42:52 +0100 Subject: [PATCH] libticker/ics: replace deprecated DateTime::from_utc() call --- libticker/src/ics/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libticker/src/ics/mod.rs b/libticker/src/ics/mod.rs index 32538f9..a796e6f 100644 --- a/libticker/src/ics/mod.rs +++ b/libticker/src/ics/mod.rs @@ -94,7 +94,7 @@ impl FromStr for Timestamp { fn from_str(s: &'_ str) -> Result { NaiveDateTime::parse_from_str(s, "%Y%m%dT%H%M%SZ") - .map(|time| DateTime::::from_utc(time, Utc) + .map(|time| DateTime::::from_naive_utc_and_offset(time, Utc) .with_timezone(&Local) .naive_local() )