aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2020-12-03 09:37:58 +0100
committersonartech <sonartech@sonarsource.com>2020-12-03 20:06:38 +0000
commit6741d92467d65179e77e910612d91e55b84e660d (patch)
tree32c8cb53394f16f09609438435ea3062c5fc281e /server/sonar-web/src/main
parent19c1858b5e72a19332e6a77fd532712e07b47a77 (diff)
downloadsonarqube-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.tsx6
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)