Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All Websites dashboard accepts invalid dates #22573

Open
textagroup opened this issue Sep 10, 2024 · 0 comments · May be fixed by #22574
Open

All Websites dashboard accepts invalid dates #22573

textagroup opened this issue Sep 10, 2024 · 0 comments · May be fixed by #22574

Comments

@textagroup
Copy link
Contributor

textagroup commented Sep 10, 2024

The All Websites dashboard accepts invalid dates via URL parameters as per the examples below

https://demo.matomo.cloud/index.php?module=MultiSites&action=index&idSite=2&period=day&date=2024-02-31
takes an invalid date and handles it as the 3rd of March

https://demo.matomo.cloud/index.php?module=MultiSites&action=index&idSite=2&period=day&date=2024-09-31
takes an invalid date and handles it as the 1st of October

The JavaScript datepicker shows an error but the back end still processes the date and shows analytics for the handled date.

This is a bit of a edge case but we should probably throw an exception or display a warning.

allWebsitesDashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant