diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2020-12-03 09:37:58 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-12-03 20:06:38 +0000 |
commit | 6741d92467d65179e77e910612d91e55b84e660d (patch) | |
tree | 32c8cb53394f16f09609438435ea3062c5fc281e /server/sonar-web/src/main | |
parent | 19c1858b5e72a19332e6a77fd532712e07b47a77 (diff) | |
download | sonarqube-6741d92467d65179e77e910612d91e55b84e660d.tar.gz sonarqube-6741d92467d65179e77e910612d91e55b84e660d.zip |
SONAR-8427 Add a timeZone param to api/issues/search
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/components/AppContainer.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/components/AppContainer.tsx b/server/sonar-web/src/main/js/apps/issues/components/AppContainer.tsx index c964c626911..97f04d40be5 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/AppContainer.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/AppContainer.tsx @@ -64,7 +64,11 @@ const fetchIssues = (query: T.RawQuery, requestOrganizations = true) => ( getState: () => Store ) => { const organizationsEnabled = areThereCustomOrganizations(getState()); - return searchIssues({ ...query, additionalFields: '_all' }) + return searchIssues({ + ...query, + additionalFields: '_all', + timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone + }) .then(response => { const parsedIssues = response.issues.map(issue => parseIssueFromResponse(issue, response.components, response.users, response.rules) |