I have a bunch of events stored in my database. Each event has a start time, which is stored DATETIMEin UTC format. Each user can select their time zone.
I want to display a calendar that shows the number of events on each day of the month. I can’t GROUP BY DATE(start_dt)because the custom day [required] does not start at 00:00:00 UTC. In addition, a custom time zone may have a DST switch in the middle of the month.
Is my only option to receive every single event for a given month, and then group and count them in my server language?
source
share