Skip to content

Commit

Permalink
Merge pull request #13 from jaxxstorm/fix_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxstorm authored Oct 18, 2022
2 parents 28268eb + ef12031 commit 4ee216b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
linters:
enable:
- deadcode
- errcheck
- goconst
- gofmt
- golint
- gosec
- govet
- ineffassign
- interfacer
- megacheck
- misspell
- nakedret
- structcheck
- unconvert
- varcheck
enable-all: false
run:
skip-files:
- schema.go
- pulumiManifest.go
timeout: 20m
2 changes: 1 addition & 1 deletion cmd/aws-sso-creds/get/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Command() *cobra.Command {

fmt.Println("")

fmt.Println("These credentials will expire at:", Red((time.Unix(*creds.RoleCredentials.Expiration, 0).Format(time.UnixDate))))
fmt.Println("These credentials will expire at:", Red(time.UnixMilli(*creds.RoleCredentials.Expiration).UTC()))

return nil
},
Expand Down

0 comments on commit 4ee216b

Please sign in to comment.