We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8996162 + 3847eeb commit 188b486Copy full SHA for 188b486
pkg/log/zap/zap_test.go
@@ -528,7 +528,7 @@ var _ = Describe("Zap log level flag options setup", func() {
528
529
It("Should propagate time encoder to logger", func() {
530
// zaps ISO8601TimeEncoder uses 2006-01-02T15:04:05.000Z0700 as pattern for iso8601 encoding
531
- iso8601Pattern := `^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}(\+[0-9]{4}|Z)`
+ iso8601Pattern := `^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}([-+][0-9]{4}|Z)`
532
533
args := []string{"--zap-time-encoding=iso8601"}
534
fromFlags.BindFlags(&fs)
0 commit comments