We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 318ef65 + 31ee791 commit 8de85c2Copy full SHA for 8de85c2
promslog/slog.go
@@ -200,9 +200,8 @@ func defaultReplaceAttr(_ []string, a slog.Attr) slog.Attr {
200
key := a.Key
201
switch key {
202
case slog.TimeKey:
203
- if t, ok := a.Value.Any().(time.Time); ok {
204
- a.Value = slog.TimeValue(t.UTC())
205
- } else {
+ // Note that we do not change the timezone to UTC anymore.
+ if _, ok := a.Value.Any().(time.Time); !ok {
206
// If we can't cast the any from the value to a
207
// time.Time, it means the caller logged
208
// another attribute with a key of `time`.
0 commit comments