Skip to content

Fix the date filter on the global time tracking report

What does this MR do and why?

When users select the same day in From and To date pickers on the global time tracking report page, the filter returns results for the previous day (issue #422151)

This MR:

  • fixes it in order to return the data for the selected day
  • updates the labels of the date pickers to

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot 2023-08-22 at 22.04.53.png Screenshot 2023-08-22 at 22.05.46.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Navigate to Navigate to http://{local-instance}/-/timelogs
  2. Run report for 2023-08-16 by selecting this day in From and To date pickers
  3. Review the dates of the results - it contains records from 2023-08-15 instead of 2023-08-16
  4. Apply changes made in this MR or switch to the branch 422151-fix-date-filter-on-global-time-tracking-report
  5. Run report for 2023-08-16 by selecting this day in From the end of and To the end of date pickers
  6. Review the dates of the results - it should contain records for 2023-08-16

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #422151 (closed)

Edited by Oksana Kohuch

Merge request reports