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

added documentation for default timezone usage #685

Open
wants to merge 1 commit into
base: live
Choose a base branch
from

Conversation

Faizan711
Copy link

@Faizan711 Faizan711 commented Dec 6, 2022

Description:

This change adds documentation for the usage of default timezone when data is requested for all sites.

Review

@@ -7,6 +7,9 @@ This is the Matomo API Reference. It lists all functions that can be called, doc

The APIs let you programmatically request any analytics reports from Matomo, for one or several websites and for any given date and period and in any format (CSV, JSON, XML, etc.). Matomo also provides Management APIs to create, update and delete websites, users, user privileges, custom dashboards, email reports, goals, funnels, custom dimensions, alerts, videos, heatmaps, session recordings, custom segments, and more.

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could maybe also mention what that means if a sites timezone differs from the default one.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, i can do that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you specify what happens when timezone differs from the default one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I can't, wasn't aware of that glitch before. But I would guess that some sites would show data from the wrong date maybe.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what should i do sir?

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

Successfully merging this pull request may close these issues.

3 participants