From e8508f92ee07959736a4900e7f456fc8b099bd0b Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Thu, 4 May 2023 10:55:18 +0200 Subject: [PATCH] SONAR-18919 Pass timezone when filtering profile changelog --- .../apps/quality-profiles/changelog/ChangelogContainer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx index 2d99c5cb61a..1930cd4ad09 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/ChangelogContainer.tsx @@ -21,7 +21,7 @@ import * as React from 'react'; import { getProfileChangelog } from '../../../api/quality-profiles'; import { Location, Router, withRouter } from '../../../components/hoc/withRouter'; import DeferredSpinner from '../../../components/ui/DeferredSpinner'; -import { parseDate, toShortISO8601String } from '../../../helpers/dates'; +import { parseDate, toISO8601WithOffsetString } from '../../../helpers/dates'; import { translate } from '../../../helpers/l10n'; import { withQualityProfilesContext } from '../qualityProfilesContext'; import { Profile, ProfileChangelogEvent } from '../types'; @@ -117,8 +117,8 @@ export class ChangelogContainer extends React.PureComponent { handleDateRangeChange = ({ from, to }: { from?: Date; to?: Date }) => { const path = getProfileChangelogPath(this.props.profile.name, this.props.profile.language, { - since: from && toShortISO8601String(from), - to: to && toShortISO8601String(to), + since: from && toISO8601WithOffsetString(from), + to: to && toISO8601WithOffsetString(to), }); this.props.router.push(path); }; -- 2.39.5