Skip to content

Commit

Permalink
Don't use deprecated chrono method
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Jan 26, 2024
1 parent 69c9d08 commit 2ae8279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rc-zip/src/format/date_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl NtfsTimestamp {
}

pub(crate) fn zero_datetime() -> chrono::DateTime<chrono::offset::Utc> {
chrono::DateTime::from_utc(
chrono::DateTime::from_naive_utc_and_offset(
chrono::naive::NaiveDateTime::from_timestamp_opt(0, 0).unwrap(),
chrono::offset::Utc,
)
Expand Down

0 comments on commit 2ae8279

Please sign in to comment.