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) {
|
||||
const {
|
||||
listCount,
|
||||
filter: { startDate, endDate, rangeValue },
|
||||
isBookmark,
|
||||
isEnterprise,
|
||||
} = props;
|
||||
|
||||
const period = Period({ start: startDate, end: endDate, rangeName: rangeValue });
|
||||
|
||||
const onDateChange = (e: any) => {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue