diff --git a/log/handler.go b/log/handler.go index 243777ca29..47bfbdb4f6 100644 --- a/log/handler.go +++ b/log/handler.go @@ -177,7 +177,7 @@ func builtinReplace(_ []string, attr slog.Attr) slog.Attr { switch attr.Key { case slog.TimeKey: if attr.Value.Kind() == slog.KindTime { - return slog.Any("t", attr.Value.Time().Format(timeFormat)) + return slog.String("t", attr.Value.Time().Format(timeFormat)) } case slog.LevelKey: if l, ok := attr.Value.Any().(slog.Level); ok {