Skip to content

Fix wrong end date in query for contributions

Heinrich Lee Yu requested to merge fix-contribution-calendar-end-date into master

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.

Edited by Heinrich Lee Yu

Merge request reports

Loading