Skip to content

Commit

Permalink
Adjust time format to pass tests on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hnakamur committed May 4, 2017
1 parent 02913e5 commit 369467a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func TestEncodeEntry(t *testing.T) {
fields: []zapcore.Field{
zap.Time("created_at", time.Date(2017, 5, 3, 21, 9, 11, 980000000, time.UTC)),
},
want: fmt.Sprintf("created_at:%s\n", time.Date(2017, 5, 3, 21, 9, 11, 980000000, time.UTC).Local().Format("2006-01-02T15:04:05.000-0700")),
want: fmt.Sprintf("created_at:%s\n", time.Date(2017, 5, 3, 21, 9, 11, 980000000, time.UTC).Local().Format("2006-01-02T15:04:05.000Z0700")),
// NOTE: I would like to time in the specified localation, that is UTC in this case.
//want: "created_at:2017-05-03T21:09:11.980Z\n",
},
Expand Down

0 comments on commit 369467a

Please sign in to comment.