From 45e9d761d7e3bc2b883d4e4f56375b25fbd451ee Mon Sep 17 00:00:00 2001 From: Marvin Date: Thu, 23 Aug 2018 20:38:59 +0200 Subject: [PATCH] Fix totalMin calculation in TimeSlots. --- 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 6a40d7dd2..80e782a81 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,