1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Deployments with timezone

This commit is contained in:
Chris Cummer 2018-04-06 21:18:55 -07:00 committed by Chris Cummer
parent 6303acc9a4
commit f1590e29f8

View File

@ -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),
)