From 5f12d34d138ed9e7bc5056fe07a07b3c8a6e4a9f Mon Sep 17 00:00:00 2001 From: Tomasz Strejczek Date: Sat, 21 Jun 2025 20:20:49 +0200 Subject: [PATCH] LibDNS: Remove LibCore::DateTime dependency Replace LibCore::DateTime Formatter with AK::UnixDateTime's Formatter. --- Libraries/LibDNS/Message.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libraries/LibDNS/Message.cpp b/Libraries/LibDNS/Message.cpp index 30fc6b89a4c..f966b81600c 100644 --- a/Libraries/LibDNS/Message.cpp +++ b/Libraries/LibDNS/Message.cpp @@ -9,7 +9,6 @@ #include #include #include -#include #include namespace DNS::Messages { @@ -1237,8 +1236,8 @@ ErrorOr Records::SIG::to_string() const builder.appendff("Algorithm: {}, ", DNSSEC::to_string(algorithm)); builder.appendff("Labels: {}, ", label_count); builder.appendff("Original TTL: {}, ", original_ttl); - builder.appendff("Signature expiration: {}, ", Core::DateTime::from_timestamp(expiration.truncated_seconds_since_epoch())); - builder.appendff("Signature inception: {}, ", Core::DateTime::from_timestamp(inception.truncated_seconds_since_epoch())); + builder.appendff("Signature expiration: {}, ", expiration); + builder.appendff("Signature inception: {}, ", inception); builder.appendff("Key tag: {}, ", key_tag); builder.appendff("Signer's name: '{}', ", signers_name.to_string()); builder.appendff("Signature: {}", TRY(encode_base64(signature)));