mirror of
https://github.com/NLnetLabs/dnst.git
synced 2026-09-06 18:07:43 +02:00
changed chrono function which is not yet in MSRV
This commit is contained in:
@@ -413,7 +413,8 @@ fn dns_display_datetime(serial: Serial, date_fmt: bool) -> String {
|
||||
if date_fmt {
|
||||
format!(
|
||||
"{}",
|
||||
chrono::DateTime::from_timestamp_secs(Into::<u32>::into(serial) as i64)
|
||||
// NOTE: from_timestamp_secs is not yet in MSRV
|
||||
chrono::DateTime::from_timestamp(Into::<u32>::into(serial) as i64, 0)
|
||||
.expect("DateTime was out of range.")
|
||||
.format("%Y%m%d%H%M%S")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user