Skip to content

Commit b761e86

Browse files
Amazing Marvinjquense
authored andcommitted
fix: totalMin calculation in TimeSlots. (jquense#965)
1 parent 6a94e72 commit b761e86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/TimeSlots.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const getKey = (min, max, step, slots) =>
1111
export function getSlotMetrics({ min: start, max: end, step, timeslots }) {
1212
const key = getKey(start, end, step, timeslots)
1313

14-
const totalMin = dates.diff(start, end, 'minutes') + getDstOffset(start, end)
14+
const totalMin =
15+
1 + dates.diff(start, end, 'minutes') + getDstOffset(start, end)
1516
const minutesFromMidnight = dates.diff(
1617
dates.startOf(start, 'day'),
1718
start,

0 commit comments

Comments
 (0)