Skip to content

Commit

Permalink
fix: date range compare component end time fix 00:00 to 59.59 (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarnaikjuspay authored Nov 29, 2024
1 parent 0216973 commit dfdcd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/DateRangeUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit dfdcd9c

Please sign in to comment.