Skip to content

Commit

Permalink
Update CLI to use ISO_8601 time format.
Browse files Browse the repository at this point in the history
This change updates the formatTime CLI helper function to return
an ISO_8601 time format which will make CLI time usage more
consistent and easier. Previosuly the time format was in US style
format which was somewhat confusing to non US users.

Closes #3806
  • Loading branch information
jrasell committed Jan 30, 2018
1 parent bb5120f commit 0a13199
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ func formatTime(t time.Time) string {
// It's more confusing to display the UNIX epoch or a zero value than nothing
return ""
}
return t.Format("01/02/06 15:04:05 MST")
// Return ISO_8601 time format GH-3806
return t.Format("2006-01-02T15:04:05Z07:00")
}

// formatUnixNanoTime is a helper for formatting time for output.
Expand Down

0 comments on commit 0a13199

Please sign in to comment.