Make CRD column printers consistent with typed printers

Almost all other server side printers use duration.HumanDuration
which has higher precision output. Switch CRD printers to use this
as well.
pull/564/head
Clayton Coleman 2019-02-10 15:17:58 -05:00
parent b862590bfc
commit 6b1a5101c3
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
1 changed files with 1 additions and 1 deletions

View File

@ -67,5 +67,5 @@ func ConvertToHumanReadableDateType(timestamp metav1.Time) string {
if timestamp.IsZero() {
return "<unknown>"
}
return duration.ShortHumanDuration(time.Now().Sub(timestamp.Time))
return duration.HumanDuration(time.Now().Sub(timestamp.Time))
}