diff --git a/writer_example_test.go b/writer_example_test.go index c16036c..72bb663 100644 --- a/writer_example_test.go +++ b/writer_example_test.go @@ -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)))) } }