From b761e8666c7fc95c5c2bf9b0a501a80d342de388 Mon Sep 17 00:00:00 2001 From: Amazing Marvin <35364886+amazingmarvin@users.noreply.github.com> Date: Fri, 21 Sep 2018 17:24:14 +0200 Subject: [PATCH] fix: totalMin calculation in TimeSlots. (#965) --- src/utils/TimeSlots.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/TimeSlots.js b/src/utils/TimeSlots.js index 75f7ff2cd..9a752be8e 100644 --- a/src/utils/TimeSlots.js +++ b/src/utils/TimeSlots.js @@ -11,7 +11,8 @@ const getKey = (min, max, step, slots) => export function getSlotMetrics({ min: start, max: end, step, timeslots }) { const key = getKey(start, end, step, timeslots) - const totalMin = dates.diff(start, end, 'minutes') + getDstOffset(start, end) + const totalMin = + 1 + dates.diff(start, end, 'minutes') + getDstOffset(start, end) const minutesFromMidnight = dates.diff( dates.startOf(start, 'day'), start,