From f1590e29f889f86d10dcdbfa2a06dc2c8a853037 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Fri, 6 Apr 2018 21:18:55 -0700 Subject: [PATCH] Deployments with timezone --- newrelic/widget.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newrelic/widget.go b/newrelic/widget.go index 8f021da7..9486b5d3 100644 --- a/newrelic/widget.go +++ b/newrelic/widget.go @@ -69,9 +69,9 @@ func (widget *Widget) contentFrom(deploys []nr.ApplicationDeployment) string { for _, deploy := range deploys { if (deploy.Revision != "") && wtf.Exclude(revisions, deploy.Revision) { str = str + fmt.Sprintf( - " [green]%4s[white] %s %s\n", - deploy.Revision[len(deploy.Revision)-4:], - deploy.Timestamp.Format("Jan 2 15:04"), + " [green]%s[white] %-6s %s\n", + deploy.Revision[0:8], + deploy.Timestamp.Format("Jan 2"), wtf.NameFromEmail(deploy.User), )