You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When I upgrade gozero's version, all my *time.Time data query from mongodb changes to UTC. I found the reason that mongo-driver's version has upgraded, the bson decoder decodes *time.Time as UTC by default.
Describe the solution you'd like
When we new a mongo collection, add a bsonOption called UseLocalTimeZone: true.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When I upgrade gozero's version, all my *time.Time data query from mongodb changes to UTC. I found the reason that mongo-driver's version has upgraded, the bson decoder decodes *time.Time as UTC by default.
Describe the solution you'd like
When we new a mongo collection, add a bsonOption called
UseLocalTimeZone: true
.The text was updated successfully, but these errors were encountered: