Skip to content

Commit

Permalink
fix: convert time to utc
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Sep 21, 2024
1 parent 92ea0c3 commit 6a37f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewWithConfig(logger *slog.Logger, config Config) echo.MiddlewareFunc {
slog.String("ip", c.RealIP()),
slog.Duration("latency", latency),
slog.String("user-agent", c.Request().UserAgent()),
slog.Time("time", end),
slog.Time("time", end.UTC()),
}

if config.WithRequestID {
Expand Down

0 comments on commit 6a37f30

Please sign in to comment.