Print human readable time for event
Reduce the length of event time as AGE column does.
This commit is contained in:
@@ -898,8 +898,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,
|
||||
|
Reference in New Issue
Block a user