Dashboard overview visits and conversions charts not showing correct period

Our setup:
Matomo On-Premise
Matomo-version: 5.0.1

We are having some problems with the overview visits and conversions charts not showing the period selected, when using the period selector on the Dashboard page.

If I select “day” and choose a date on the calendar, let´s say 2024-01-17, then the charts update and show a period from 2023-12-19 to 2024-01-17 (1 month).
In this case we want the charts to show period from 2024-01-17 to 2024-01-17 (only the selected day).

If I select “Date interval” and choose a from and to date on the calendar, let´s say 2024-01-17 and 2024-01-17, then the charts update and show the correct period: fom 2024-01-17 to 2024-01-17.

I basically want the charts to always show the period selected, like they do when using the “Date interval” period-type.

I hope someone can help me solve this problem.