@@ -146,7 +146,7 @@ var allItems = []testItemType{
146146 "\x08 _\x00 \x00 " },
147147 {bson.M {"_" : true },
148148 "\x08 _\x00 \x01 " },
149- {bson.M {"_" : time .Unix (0 , 258e6 )}, // Note the NS <=> MS conversion.
149+ {bson.M {"_" : time .Unix (0 , 258e6 ). UTC () }, // Note the NS <=> MS conversion.
150150 "\x09 _\x00 \x02 \x01 \x00 \x00 \x00 \x00 \x00 \x00 " },
151151 {bson.M {"_" : nil },
152152 "\x0A _\x00 " },
@@ -1265,7 +1265,7 @@ var twoWayCrossItems = []crossTypeItem{
12651265 {& condPtr {& falsevar }, map [string ]bool {"v" : false }},
12661266 {& condPtr {}, map [string ]string {}},
12671267
1268- {& condTime {time .Unix (123456789 , 123e6 )}, map [string ]time.Time {"v" : time .Unix (123456789 , 123e6 )}},
1268+ {& condTime {time .Unix (123456789 , 123e6 ). UTC () }, map [string ]time.Time {"v" : time .Unix (123456789 , 123e6 ). UTC ( )}},
12691269 {& condTime {}, map [string ]string {}},
12701270
12711271 {& condStruct {struct { A []int }{[]int {1 }}}, bson.M {"v" : bson.M {"a" : []interface {}{1 }}}},
@@ -1320,8 +1320,8 @@ var twoWayCrossItems = []crossTypeItem{
13201320 {& struct { V time.Time }{}, map [string ]interface {}{"v" : time.Time {}}},
13211321
13221322 // zero time + 1 second + 1 millisecond; overflows int64 as nanoseconds
1323- {& struct { V time.Time }{time .Unix (- 62135596799 , 1e6 ).Local ()},
1324- map [string ]interface {}{"v" : time .Unix (- 62135596799 , 1e6 ).Local ()}},
1323+ {& struct { V time.Time }{time .Unix (- 62135596799 , 1e6 ).UTC ()},
1324+ map [string ]interface {}{"v" : time .Unix (- 62135596799 , 1e6 ).UTC ()}},
13251325
13261326 // bson.D <=> []DocElem
13271327 {& bson.D {{"a" , bson.D {{"b" , 1 }, {"c" , 2 }}}}, & bson.D {{"a" , bson.D {{"b" , 1 }, {"c" , 2 }}}}},
0 commit comments