|
|
@ -14,7 +14,7 @@ import ( |
|
|
|
|
|
|
|
func exampleWithTime(key, format string) log.Middleware { |
|
|
|
return func(ctx context.Context, e *entry.Entry, handler log.Logger) (int, error) { |
|
|
|
return handler(ctx, e.Add(field.FormatTime(key, format, time.Unix(math.MaxInt32, 0)))) |
|
|
|
return handler(ctx, e.Add(field.FormatTime(key, format, time.Unix(math.MaxInt32, 0).In(time.UTC)))) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|