Skip to content
Snippets Groups Projects
Unverified Commit c31396bf authored by ck85nori's avatar ck85nori :railway_track:
Browse files

fixes deprecation warnings

parent 93938b61
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ where
let dt = NaiveDateTime::parse_from_str(&s, "%Y%m%dT%H%M%SZ")
.map_err(serde::de::Error::custom)?;
let dt = DateTime::<Utc>::from_utc(dt, Utc);
let dt = DateTime::<Utc>::from_naive_utc_and_offset(dt, Utc);
let dt = DateTime::from(dt);
Ok(dt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment