Skip to content

Commit

Permalink
chore: change time format to ISO8601TimeEncoder (#28)
Browse files Browse the repository at this point in the history
change time format to ISO8601TimeEncoder

Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller authored Jul 25, 2024
1 parent 71668e1 commit e320f89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package main
import (
"crypto/tls"
"flag"
"go.uber.org/zap/zapcore"
"os"

"github.com/argoproj-labs/gitops-promoter/internal/utils"
Expand Down Expand Up @@ -70,6 +71,7 @@ func main() {
"If set, HTTP/2 will be enabled for the metrics and webhook servers")
opts := zap.Options{
Development: true,
TimeEncoder: zapcore.ISO8601TimeEncoder,
}
opts.BindFlags(flag.CommandLine)
flag.Parse()
Expand Down

0 comments on commit e320f89

Please sign in to comment.