Browse Source

set tz t example

andrey 11 months ago
parent
commit
7ded455459
  1. 2
      writer_example_test.go

2
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))))
}
}

Loading…
Cancel
Save