fix(tracker): fix time sorting
This commit is contained in:
parent
51701a9028
commit
f059a205f9
2 changed files with 3 additions and 3 deletions
|
|
@ -20,11 +20,11 @@ interface Props {
|
||||||
}
|
}
|
||||||
function SessionHeader(props: Props) {
|
function SessionHeader(props: Props) {
|
||||||
const {
|
const {
|
||||||
listCount,
|
|
||||||
filter: { startDate, endDate, rangeValue },
|
filter: { startDate, endDate, rangeValue },
|
||||||
isBookmark,
|
isBookmark,
|
||||||
isEnterprise,
|
isEnterprise,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const period = Period({ start: startDate, end: endDate, rangeName: rangeValue });
|
const period = Period({ start: startDate, end: endDate, rangeName: rangeValue });
|
||||||
|
|
||||||
const onDateChange = (e: any) => {
|
const onDateChange = (e: any) => {
|
||||||
|
|
|
||||||
|
|
@ -80,8 +80,8 @@ export default Record(
|
||||||
const offset = period.timezoneOffset || 0
|
const offset = period.timezoneOffset || 0
|
||||||
if (!period.rangeName || period.rangeName === CUSTOM_RANGE) {
|
if (!period.rangeName || period.rangeName === CUSTOM_RANGE) {
|
||||||
const range = moment.range(
|
const range = moment.range(
|
||||||
moment(period.start || 0).utcOffset(offset),
|
moment(period.start || 0),
|
||||||
moment(period.end || 0).utcOffset(offset)
|
moment(period.end || 0)
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
...period,
|
...period,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue