Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
chore(main): set to current timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbes committed Aug 8, 2024
1 parent 0eabe38 commit 3e44557
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/nada-backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ const (
func main() {
flag.Parse()

loc, _ := time.LoadLocation("Europe/Oslo")

zerolog.TimestampFunc = func() time.Time {
return time.Now().UTC().In(loc)
}

zlog := zerolog.New(zerolog.NewConsoleWriter()).With().Timestamp().Logger()

fileParts, err := config.ProcessConfigPath(*configFilePath)
Expand Down

0 comments on commit 3e44557

Please sign in to comment.