From 584e624fccc95749ab0f5260e8058479a5cf1bf5 Mon Sep 17 00:00:00 2001 From: Cyril David Date: Mon, 25 Jan 2021 11:39:38 -0800 Subject: [PATCH] Just minor display tweaks --- internal/display/actions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/display/actions.go b/internal/display/actions.go index 27118b277..897dde08b 100644 --- a/internal/display/actions.go +++ b/internal/display/actions.go @@ -16,7 +16,7 @@ type actionView struct { } func (v *actionView) AsTableHeader() []string { - return []string{"ID", "Name", "Type", "CreatedAt"} + return []string{"ID", "Name", "Type", "Created At"} } func (v *actionView) AsTableRow() []string { @@ -36,7 +36,7 @@ func (r *Renderer) ActionList(actions []*management.Action) { res = append(res, &actionView{ ID: auth0.StringValue(a.ID), Name: auth0.StringValue(a.Name), - CreatedAt: a.CreatedAt.String(), + CreatedAt: timeAgo(auth0.TimeValue(a.CreatedAt)), Type: strings.Join(triggers, ", "), // Runtime: auth0.StringValue(a.Runtime), })