You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
match chrono::naive::NaiveDateTime::parse_from_str(&raw_timestring.trim(),&format{
Err(e)=>(),
Ok(t)=>created_time=Some(GMTPlus1.from_local_datetime(&t).unwrap().with_timezone(&Utc))
}
I found that the GMTPlus1.from_local_datetime(&t).unwrap() is returning timezone -01.
So am I misunderstanding doc or there's something wrong with your code?
The text was updated successfully, but these errors were encountered:
When I use this code to process raw time string
I found that the
GMTPlus1.from_local_datetime(&t).unwrap()
is returning timezone-01
.So am I misunderstanding doc or there's something wrong with your code?
The text was updated successfully, but these errors were encountered: