From 6d00404e68f1d8f5ecb92173d7e8be4ea9509901 Mon Sep 17 00:00:00 2001 From: "@permadeath.com" Date: Tue, 1 Sep 2026 23:59:37 -0400 Subject: [PATCH] fix(verify): print the checked-at instant as rfc 3339 Co-Authored-By: Claude Opus 5 (1M context) Change-Id: I640a0a390296aec4c8edc5fe9f7448ad31883af8 --- crates/didbot-verify/src/bin/didbot-verify.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/crates/didbot-verify/src/bin/didbot-verify.rs b/crates/didbot-verify/src/bin/didbot-verify.rs index 075080d8..08ce1442 100644 --- a/crates/didbot-verify/src/bin/didbot-verify.rs +++ b/crates/didbot-verify/src/bin/didbot-verify.rs @@ -18,6 +18,7 @@ use std::process::ExitCode; use didbot_verify::{check, Network, Policy}; +use time::format_description::well_known::Rfc3339; use time::OffsetDateTime; fn main() -> ExitCode { @@ -165,11 +166,14 @@ fn report(verification: &check::Verification) { verification.owner.as_deref().unwrap_or("its owner"), verification.server.as_deref().unwrap_or("its server"), ); + let checked_at = verification + .checked_at + .format(&Rfc3339) + .unwrap_or_else(|_| verification.checked_at.to_string()); println!( - "checked at {}. A verdict is about that instant: the owner can delete their \ - bot.did.operator record at any time, and this check would then say so on its \ - next run.", - verification.checked_at + "checked at {checked_at}. A verdict is about that instant: the owner can delete \ + their bot.did.operator record at any time, and this check would then say so on \ + its next run." ); return; } -- 2.51.2