mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
Previously, entering a non-UTC end time for a daily stat would give you incorrect results. This is because: * All daily stats are collected at and have end_times in the database in midnight UTC. * For daily stats, time_range returns a list of datetimes at midnight in the timezone of its end argument. These datetimes are the only ones we look for when looking for rows corresponding to the stat in the database. * Previously, we passed on the end argument from the API to time_range, without modification.
36 KiB
36 KiB