libticker/ics: replace deprecated DateTime::from_utc() call
This commit is contained in:
parent
a64a572782
commit
d3ef99e500
|
@ -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()
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue