globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 231 forks source link

Should the time use Local instead of UTC ? #341

Closed wzshiming closed 5 years ago

wzshiming commented 5 years ago

https://github.com/globalsign/mgo/blob/eeefdecb41b842af6dc652aaea4026e8403e62df/bson/decode.go#L724

eminano commented 5 years ago

Hi @wzshiming,

It's standard practice (and a good idea) to use UTC instead of local, since it guarantees consistent timestamps. If you have the need for local time, you should handle the conversion on your end.

Cheers, Esther