diff --git a/src/utils/TimeSlots.js b/src/utils/TimeSlots.js index 4132c10c3..4fe7f8641 100644 --- a/src/utils/TimeSlots.js +++ b/src/utils/TimeSlots.js @@ -19,7 +19,7 @@ export function getSlotMetrics({ min: start, max: end, step, timeslots }) { 1 + dates.diff(start, end, 'minutes') + getDstOffset(start, end) const minutesFromMidnight = dates.diff(daystart, start, 'minutes') + daystartdstoffset - const numGroups = Math.ceil(totalMin / (step * timeslots)) + const numGroups = Math.ceil((totalMin - 1) / (step * timeslots)) const numSlots = numGroups * timeslots const groups = new Array(numGroups)