From: Wouter Admiraal Date: Thu, 4 May 2023 08:55:18 +0000 (+0200) Subject: SONAR-18919 Pass timezone when filtering profile changelog X-Git-Tag: 10.1.0.73491~336 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e8508f92ee07959736a4900e7f456fc8b099bd0b;p=sonarqube.git SONAR-18919 Pass timezone when filtering profile changelog --- 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); };