fix(tracker): fix time sorting

This commit is contained in:
sylenien 2022-08-30 17:54:27 +02:00
parent 51701a9028
commit f059a205f9
2 changed files with 3 additions and 3 deletions

View file

@ -20,11 +20,11 @@ interface Props {
}
function SessionHeader(props: Props) {
const {
listCount,
filter: { startDate, endDate, rangeValue },
isBookmark,
isEnterprise,
} = props;
const period = Period({ start: startDate, end: endDate, rangeName: rangeValue });
const onDateChange = (e: any) => {

View file

@ -80,8 +80,8 @@ export default Record(
const offset = period.timezoneOffset || 0
if (!period.rangeName || period.rangeName === CUSTOM_RANGE) {
const range = moment.range(
moment(period.start || 0).utcOffset(offset),
moment(period.end || 0).utcOffset(offset)
moment(period.start || 0),
moment(period.end || 0)
);
return {
...period,