From 2ae8279115599c1cf8a44392c45bbe6895bd30a3 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Fri, 26 Jan 2024 11:34:28 +0100 Subject: [PATCH] Don't use deprecated chrono method --- crates/rc-zip/src/format/date_time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rc-zip/src/format/date_time.rs b/crates/rc-zip/src/format/date_time.rs index 4b5e27e..e7c737e 100644 --- a/crates/rc-zip/src/format/date_time.rs +++ b/crates/rc-zip/src/format/date_time.rs @@ -99,7 +99,7 @@ impl NtfsTimestamp { } pub(crate) fn zero_datetime() -> chrono::DateTime { - chrono::DateTime::from_utc( + chrono::DateTime::from_naive_utc_and_offset( chrono::naive::NaiveDateTime::from_timestamp_opt(0, 0).unwrap(), chrono::offset::Utc, )