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
Improve documentation to explain timezone usage when requesting data for all sites #20045
Comments
is this issue still open, if so i would like to be assigned to work on it. |
Hi @Faizan711 - We would welcome a Pull Request on the applicable developer docs page https://developer.matomo.org/api-reference/reporting-api#standard-api-parameters |
I am new to open source so can you please tell me which folder the page lies where i can make the changes. That would help me a lot. |
@fabiocarneiro There is a |
Thanks a lot. |
The issue does not clearly specifies what kind of behavior has to be documented. Can you be more specific please? |
Hi @Faizan711,
^^ This is the behaviour that isn't documented. The current documentation doesn't explain that the default timezone will be used when requesting data for all sites. This leads to confusion if the default timezone has not been set since it will default to UTC which may not match the expected timezone for the sites. Issue 20042 also has more useful detail. 🙂 |
I have made a PR in the developer-documentation repository. Please check and let me know if any changes are required in it or is is fine. |
Sites have their own timezone and this is used when requesting data for a single site.
When requesting data for all sites the
SitesManager.getDefaultTimezone()
is used.This behavior doesn't appear to be documented:
https://developer.matomo.org/api-reference/reporting-api#standard-api-parameters
https://matomo.org/faq/how-to/faq_83/
Additionally the UI option to set the default timezone is described as 'Default time zone for new websites' which doesn't give any indication that it will also be used as the timezone when requesting all site data:
It would be good to update the API docs, add an FAQ and perhaps some supplemental UI text? ("You can select the time zone used as default new websites, this time zone will also be used when requesting data for multiple sites at once")
See #20042
The text was updated successfully, but these errors were encountered: