datamade / django-councilmatic

:heartpulse: Django app providing core functions for *.councilmatic.org
http://councilmatic.org
MIT License
26 stars 16 forks source link

Add local_start_time property to Event model #266

Closed hancush closed 4 years ago

hancush commented 4 years ago

Description

The start time we generate is in UTC. This is fine most places, but we group events for display by date using the year, month, and day from that UTC time. Again, this is fine most of the time, unless an event is scheduled for a time translates to after midnight in UTC, causing the event to be grouped with the following day for display. This PR adds a local start time property to the Event model and uses it to group events for display.