Normalize output.

- In `sq cert list`'s output, don't say "expired on," just say
    "expired", which matches other messages, like "created"
This commit is contained in:
Neal H. Walfield 2024-11-07 11:11:20 +01:00
parent aa469739d1
commit b4976919c5
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3

View File

@ -320,12 +320,12 @@ impl OutputType for ConciseHumanReadableOutputNetwork<'_, '_, '_> {
if let Some(t) = vc.primary_key().key_expiration_time() {
if t < SystemTime::now() {
extra_info.push(
format!("expired on {}",
format!("expired {}",
Time::try_from(t)
.expect("is an OpenPGP timestamp")))
} else {
extra_info.push(
format!("will expire on {}",
format!("will expire {}",
Time::try_from(t)
.expect("is an OpenPGP timestamp")))
}