Skip to content

Commit 5f12d34

Browse files
tomaszstrejczekgmta
authored andcommitted
LibDNS: Remove LibCore::DateTime dependency
Replace LibCore::DateTime Formatter with AK::UnixDateTime's Formatter.
1 parent 5cde267 commit 5f12d34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Libraries/LibDNS/Message.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <AK/MemoryStream.h>
1010
#include <AK/Stream.h>
1111
#include <AK/UFixedBigInt.h>
12-
#include <LibCore/DateTime.h>
1312
#include <LibDNS/Message.h>
1413

1514
namespace DNS::Messages {
@@ -1237,8 +1236,8 @@ ErrorOr<String> Records::SIG::to_string() const
12371236
builder.appendff("Algorithm: {}, ", DNSSEC::to_string(algorithm));
12381237
builder.appendff("Labels: {}, ", label_count);
12391238
builder.appendff("Original TTL: {}, ", original_ttl);
1240-
builder.appendff("Signature expiration: {}, ", Core::DateTime::from_timestamp(expiration.truncated_seconds_since_epoch()));
1241-
builder.appendff("Signature inception: {}, ", Core::DateTime::from_timestamp(inception.truncated_seconds_since_epoch()));
1239+
builder.appendff("Signature expiration: {}, ", expiration);
1240+
builder.appendff("Signature inception: {}, ", inception);
12421241
builder.appendff("Key tag: {}, ", key_tag);
12431242
builder.appendff("Signer's name: '{}', ", signers_name.to_string());
12441243
builder.appendff("Signature: {}", TRY(encode_base64(signature)));

0 commit comments

Comments
 (0)