mirror of https://github.com/k3s-io/k3s
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
parent
b862590bfc
commit
6b1a5101c3
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue