fix: convert time to utc
This commit is contained in:
+2
-2
@@ -148,7 +148,7 @@ func NewWithConfig(logger *slog.Logger, config Config) gin.HandlerFunc {
|
||||
baseAttributes := []slog.Attr{}
|
||||
|
||||
requestAttributes := []slog.Attr{
|
||||
slog.Time("time", start),
|
||||
slog.Time("time", start.UTC()),
|
||||
slog.String("method", method),
|
||||
slog.String("host", host),
|
||||
slog.String("path", path),
|
||||
@@ -160,7 +160,7 @@ func NewWithConfig(logger *slog.Logger, config Config) gin.HandlerFunc {
|
||||
}
|
||||
|
||||
responseAttributes := []slog.Attr{
|
||||
slog.Time("time", end),
|
||||
slog.Time("time", end.UTC()),
|
||||
slog.Duration("latency", latency),
|
||||
slog.Int("status", status),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user