Skip to content

Commit

Permalink
fix deprecated function problem (#11)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
sonichen authored Sep 23, 2023
1 parent 9cc5688 commit 7e598eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/git_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ pub fn parse_date_to_datetime(input: &str, mytype: &str) -> Result<DateTime<Utc>
}

let datetime = NaiveDateTime::new(date, time);
let datetime_utc = DateTime::from_utc(datetime, Utc);
// let datetime_utc = DateTime::from_utc(datetime, Utc);
let datetime_utc = DateTime::from_naive_utc_and_offset(datetime, Utc);

Ok(datetime_utc)
}

Expand Down

0 comments on commit 7e598eb

Please sign in to comment.