libticker/ics: replace deprecated DateTime::from_utc() call

This commit is contained in:
Astro 2023-12-25 00:42:52 +01:00
parent a64a572782
commit d3ef99e500
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ impl FromStr for Timestamp {
fn from_str(s: &'_ str) -> Result<Self, Self::Err> {
NaiveDateTime::parse_from_str(s, "%Y%m%dT%H%M%SZ")
.map(|time| DateTime::<Utc>::from_utc(time, Utc)
.map(|time| DateTime::<Utc>::from_naive_utc_and_offset(time, Utc)
.with_timezone(&Local)
.naive_local()
)