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';
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);
};