diff --git a/src/pagerduty.js b/src/pagerduty.js index f501f9d..11b27df 100644 --- a/src/pagerduty.js +++ b/src/pagerduty.js @@ -149,7 +149,7 @@ function processSchedules(allSchedules, days = [], cb) { exclusionEndDate.hours(exclusionEndTime[0]); exclusionEndDate.minutes(exclusionEndTime[1]); - if (day.isBetween(exclusionStartDate, exclusionEndDate)) { + if (day.isBetween(exclusionStartDate, exclusionEndDate, 'minute', [])) { debug('excluded:', message); overlap = false; }