Skip to content

Commit 7e598eb

Browse files
authored
fix deprecated function problem (#11)
* standardize code formatting and detect local directory Signed-off-by: sonichen <[email protected]> * standardize code formatting and detect local directory Signed-off-by: sonichen <[email protected]> * delete compiled binary file Signed-off-by: sonichen <[email protected]> * fix deprecated function problem Signed-off-by: sonichen <[email protected]> --------- Signed-off-by: sonichen <[email protected]>
1 parent 9cc5688 commit 7e598eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/git_util.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ pub fn parse_date_to_datetime(input: &str, mytype: &str) -> Result<DateTime<Utc>
339339
}
340340

341341
let datetime = NaiveDateTime::new(date, time);
342-
let datetime_utc = DateTime::from_utc(datetime, Utc);
342+
// let datetime_utc = DateTime::from_utc(datetime, Utc);
343+
let datetime_utc = DateTime::from_naive_utc_and_offset(datetime, Utc);
344+
343345
Ok(datetime_utc)
344346
}
345347

0 commit comments

Comments
 (0)