mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibDNS: Remove LibCore::DateTime dependency
Replace LibCore::DateTime Formatter with AK::UnixDateTime's Formatter.
This commit is contained in:
parent
5cde267979
commit
5f12d34d13
Notes:
github-actions[bot]
2025-09-30 10:40:40 +00:00
Author: https://github.com/tomaszstrejczek
Commit: 5f12d34d13
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5167
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/gmta ✅
1 changed files with 2 additions and 3 deletions
|
|
@ -9,7 +9,6 @@
|
||||||
#include <AK/MemoryStream.h>
|
#include <AK/MemoryStream.h>
|
||||||
#include <AK/Stream.h>
|
#include <AK/Stream.h>
|
||||||
#include <AK/UFixedBigInt.h>
|
#include <AK/UFixedBigInt.h>
|
||||||
#include <LibCore/DateTime.h>
|
|
||||||
#include <LibDNS/Message.h>
|
#include <LibDNS/Message.h>
|
||||||
|
|
||||||
namespace DNS::Messages {
|
namespace DNS::Messages {
|
||||||
|
|
@ -1237,8 +1236,8 @@ ErrorOr<String> Records::SIG::to_string() const
|
||||||
builder.appendff("Algorithm: {}, ", DNSSEC::to_string(algorithm));
|
builder.appendff("Algorithm: {}, ", DNSSEC::to_string(algorithm));
|
||||||
builder.appendff("Labels: {}, ", label_count);
|
builder.appendff("Labels: {}, ", label_count);
|
||||||
builder.appendff("Original TTL: {}, ", original_ttl);
|
builder.appendff("Original TTL: {}, ", original_ttl);
|
||||||
builder.appendff("Signature expiration: {}, ", Core::DateTime::from_timestamp(expiration.truncated_seconds_since_epoch()));
|
builder.appendff("Signature expiration: {}, ", expiration);
|
||||||
builder.appendff("Signature inception: {}, ", Core::DateTime::from_timestamp(inception.truncated_seconds_since_epoch()));
|
builder.appendff("Signature inception: {}, ", inception);
|
||||||
builder.appendff("Key tag: {}, ", key_tag);
|
builder.appendff("Key tag: {}, ", key_tag);
|
||||||
builder.appendff("Signer's name: '{}', ", signers_name.to_string());
|
builder.appendff("Signer's name: '{}', ", signers_name.to_string());
|
||||||
builder.appendff("Signature: {}", TRY(encode_base64(signature)));
|
builder.appendff("Signature: {}", TRY(encode_base64(signature)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue