I’m trying to group documents with the operator
$dayOfYear. Obviously, all dates are stored in UTC. The problem is if a document is recorded at 02/02/2021 02:00 AM UTC, in local time is 01/02/2021 11:00 PM, 4 hours of offset,
So, how I can handle this? We don’t want to store timezone on every document because two users can make the same query but on different timezones, independently where was created the record.
In short, how can set the timezone when using