Fix wrong end date in query for contributions
What does this MR do and why?
This fixes a bug introduced by !72938 (merged).
When a user's timezone is behind UTC, we were using the wrong end date because we called @contributor_time_instance.today.end_of_day
. Calling #today
returns a date so it loses timezone information.
Instead of having an end time that's on the next day UTC, it just ends up getting the end of the UTC day.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Heinrich Lee Yu