File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -139,14 +139,14 @@ impl From<TimewarriorRAW> for TimewarriorData {
139139 id : item. id ,
140140 tags : item. tags ,
141141 annotation : item. annotation ,
142- start : DateTime :: from_utc (
143- chrono:: NaiveDateTime :: parse_from_str ( & item . start , "%Y%m%dT%H%M%SZ" ) . unwrap ( ) ,
144- chrono:: Utc ,
142+ start : chrono :: TimeZone :: from_utc_datetime (
143+ & chrono:: Utc ,
144+ & chrono:: NaiveDateTime :: parse_from_str ( & item . start , "%Y%m%dT%H%M%SZ" ) . unwrap ( )
145145 ) ,
146146 end : item. end . map ( |v| {
147- DateTime :: from_utc (
148- chrono:: NaiveDateTime :: parse_from_str ( & v , "%Y%m%dT%H%M%SZ" ) . unwrap ( ) ,
149- chrono:: Utc ,
147+ chrono :: TimeZone :: from_utc_datetime (
148+ & chrono:: Utc ,
149+ & chrono:: NaiveDateTime :: parse_from_str ( & v , "%Y%m%dT%H%M%SZ" ) . unwrap ( )
150150 )
151151 } ) ,
152152 }
You can’t perform that action at this time.
0 commit comments