Merge pull request #73888 from smarterclayton/duration

Make CRD column printers consistent with typed printers
This commit is contained in:
Kubernetes Prow Robot 2019-02-10 13:50:30 -08:00 committed by GitHub
commit 3dfb9e8f49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))
}