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:
parent
aa469739d1
commit
b4976919c5
@ -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")))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user