Merge pull request #1716 from ipfs-cluster/fix/1666-expire-in

ctl: Expiration date in "pin ls" was showing wrong field (timestamp)
This commit is contained in:
Hector Sanjuan 2022-06-20 22:05:17 +02:00 committed by GitHub
commit 2ad9e7e71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,7 +241,7 @@ func textFormatPrintPin(obj api.Pin) {
}
expireAt := "∞"
if !obj.ExpireAt.IsZero() {
expireAt = obj.Timestamp.Format("2006-01-02 15:04:05")
expireAt = obj.ExpireAt.Format("2006-01-02 15:04:05")
}
fmt.Printf(" | Exp: %s", expireAt)