Skip to content

Commit 6b1a510

Browse files
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.
1 parent b862590 commit 6b1a510

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apimachinery/pkg/api/meta/table

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apimachinery/pkg/api/meta/table/table.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ func ConvertToHumanReadableDateType(timestamp metav1.Time) string {
6767
if timestamp.IsZero() {
6868
return "<unknown>"
6969
}
70-
return duration.ShortHumanDuration(time.Now().Sub(timestamp.Time))
70+
return duration.HumanDuration(time.Now().Sub(timestamp.Time))
7171
}

0 commit comments

Comments
 (0)