Skip to content

Commit db4ecb3

Browse files
authored
Merge pull request globalsign#25 from joomcode/time-utc
bson.Unmarshal returns time in UTC
2 parents eebe5c9 + ae4c859 commit db4ecb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/decode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ func (d *decoder) readElemTo(out reflect.Value, kind byte) (good bool) {
721721
if i == -62135596800000 {
722722
in = time.Time{} // In UTC for convenience.
723723
} else {
724-
in = time.Unix(i/1e3, i%1e3*1e6)
724+
in = time.Unix(i/1e3, i%1e3*1e6).UTC()
725725
}
726726
case ElementNil:
727727
in = nil

0 commit comments

Comments
 (0)