Compare commits
1 Commits
9cd8f95c73
...
7ded455459
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ded455459 |
@@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
func exampleWithTime(key, format string) log.Middleware {
|
func exampleWithTime(key, format string) log.Middleware {
|
||||||
return func(ctx context.Context, e *entry.Entry, handler log.Logger) (int, error) {
|
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))))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user