Audit Event `This month` button selects 1 day instead of 30 days

Summary

Steps to reproduce

  1. Navigate to audit events (Doesn't matter if it's Project, group or instance level)
  2. Select Last 7 Days, Last 14 Days and This month and see This month only selects 1 day (On 2023-12-01, it selects 2023-11-30)

Example Project

What is the current bug behavior?

Selecting This month at Audit events selects 1 Day:

What is the expected correct behavior?

It should select 30 days automatically.

Relevant logs and/or screenshots

Screenshot_2023-12-01_at_12.03.28_PM

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Assignee Loading
Time tracking Loading