Browse Source

Change TestMarshalDate to work with UTC to avoid TZ errors (#1169)

Signed-off-by: Alex Lourie <alex@instaclustr.com>
Alex Lourie 7 years ago
parent
commit
db20ccb043
1 changed files with 1 additions and 1 deletions
  1. 1 1
      marshal_test.go

+ 1 - 1
marshal_test.go

@@ -1358,7 +1358,7 @@ func TestUnmarshalDate(t *testing.T) {
 }
 
 func TestMarshalDate(t *testing.T) {
-	now := time.Now()
+	now := time.Now().UTC()
 	timestamp := now.UnixNano() / int64(time.Millisecond)
 	expectedData := encInt(int32(timestamp/86400000 + int64(1<<31)))
 	var marshalDateTests = []struct {