diff --git a/pkg/kubectl/describe.go b/pkg/kubectl/describe.go index d4cde157bfc..b8be8e8b5bd 100644 --- a/pkg/kubectl/describe.go +++ b/pkg/kubectl/describe.go @@ -927,8 +927,8 @@ func DescribeEvents(el *api.EventList, w io.Writer) { fmt.Fprint(w, "Events:\n FirstSeen\tLastSeen\tCount\tFrom\tSubobjectPath\tReason\tMessage\n") for _, e := range el.Items { fmt.Fprintf(w, " %s\t%s\t%d\t%v\t%v\t%v\t%v\n", - e.FirstTimestamp.Time.Format(time.RFC1123Z), - e.LastTimestamp.Time.Format(time.RFC1123Z), + translateTimestamp(e.FirstTimestamp), + translateTimestamp(e.LastTimestamp), e.Count, e.Source, e.InvolvedObject.FieldPath, diff --git a/pkg/kubectl/resource_printer.go b/pkg/kubectl/resource_printer.go index 83903bf789e..9a078f7f20f 100644 --- a/pkg/kubectl/resource_printer.go +++ b/pkg/kubectl/resource_printer.go @@ -850,8 +850,8 @@ func printEvent(event *api.Event, w io.Writer, withNamespace bool, wide bool, co } if _, err := fmt.Fprintf( w, "%s\t%s\t%d\t%s\t%s\t%s\t%s\t%s\t%s", - event.FirstTimestamp.Time.Format(time.RFC1123Z), - event.LastTimestamp.Time.Format(time.RFC1123Z), + translateTimestamp(event.FirstTimestamp), + translateTimestamp(event.LastTimestamp), event.Count, event.InvolvedObject.Name, event.InvolvedObject.Kind,