mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
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.
This commit is contained in:
parent
b862590bfc
commit
6b1a5101c3
@ -67,5 +67,5 @@ func ConvertToHumanReadableDateType(timestamp metav1.Time) string {
|
|||||||
if timestamp.IsZero() {
|
if timestamp.IsZero() {
|
||||||
return "<unknown>"
|
return "<unknown>"
|
||||||
}
|
}
|
||||||
return duration.ShortHumanDuration(time.Now().Sub(timestamp.Time))
|
return duration.HumanDuration(time.Now().Sub(timestamp.Time))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user