diff --git a/src/utils/DateRangeUtils.res b/src/utils/DateRangeUtils.res index 675056261..f1509d3fc 100644 --- a/src/utils/DateRangeUtils.res +++ b/src/utils/DateRangeUtils.res @@ -317,7 +317,7 @@ let getComparisionTimePeriod = (~startDate, ~endDate) => { let gap = endingPoint.diff(startingPoint.toString(), "millisecond") // diff between points let startTimeValue = startingPoint.subtract(gap, "millisecond").toDate()->Date.toISOString - let endTimeVal = endingPoint.subtract(gap, "millisecond").toDate()->Date.toISOString + let endTimeVal = startingPoint.subtract(1, "millisecond").toDate()->Date.toISOString (startTimeValue, endTimeVal) }