globalsign / mgo

The MongoDB driver for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should the time use Local instead of UTC ?

wzshiming opened this issue · comments

in = time.Unix(i/1e3, i%1e3*1e6).UTC()

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