Merge pull request #3814 from jrasell/f_gh_3806

Update CLI to use ISO_8601 time format.
This commit is contained in:
Chelsea Komlo
2018-01-30 17:39:39 -05:00
committed by GitHub

View File

@@ -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.