|
|
@@ -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 {
|