Posts by mpoletto • 111 points
1 post
-
1
votes2
answers2465
viewsA: Wrong time on Mongodb
As for reading, use Timezone after the date. e.g. Brazil GMT-3:00 is -300: { $project: { "iso_date_field": 1, "hour": { $hour: { date: "$iso_date_field", timezone: "-0300" } }, "hour2": { $hour: {…