Skip to content

Commit

Permalink
cleaner header in UTC timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikescher committed Jan 5, 2023
1 parent 8a9287c commit 65afa9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion consts/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package consts

//go:generate /bin/bash version.sh

const BETTER_DOCKER_PS_VERSION = "1.4"
const BETTER_DOCKER_PS_VERSION = "1.6"
3 changes: 3 additions & 0 deletions impl/columns.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ func ColCreatedAt(ctx *cli.PSContext, cont *docker.ContainerSchema) []string {
if cont == nil {
if ctx.Opt.TimeFormatHeader != "" {
hdr := time.Now().In(ctx.Opt.TimeZone).Format(ctx.Opt.TimeFormatHeader)
if hdr == "Z UTC" {
hdr = "UTC"
}
return []string{"CREATED AT (" + hdr + ")"}
} else {
return []string{"CREATED AT"}
Expand Down

0 comments on commit 65afa9d

Please sign in to comment.