From 80bb2d9ccccf9121791fffffe686fe4e37ddc5e0 Mon Sep 17 00:00:00 2001 From: withjannisNLnetLabs Date: Fri, 12 Jun 2026 16:57:11 +0200 Subject: [PATCH] changed chrono function which is not yet in MSRV --- src/commands/readzone.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/readzone.rs b/src/commands/readzone.rs index 0325bca..5ca02f4 100644 --- a/src/commands/readzone.rs +++ b/src/commands/readzone.rs @@ -413,7 +413,8 @@ fn dns_display_datetime(serial: Serial, date_fmt: bool) -> String { if date_fmt { format!( "{}", - chrono::DateTime::from_timestamp_secs(Into::::into(serial) as i64) + // NOTE: from_timestamp_secs is not yet in MSRV + chrono::DateTime::from_timestamp(Into::::into(serial) as i64, 0) .expect("DateTime was out of range.") .format("%Y%m%d%H%M%S") )