From 11d17dd2c048d022c6735afef1bbdd4fdcbefe5d Mon Sep 17 00:00:00 2001 From: Sam Detweiler Date: Tue, 6 Sep 2022 13:29:08 -0500 Subject: [PATCH] fix typo, duplcate line --- modules/default/calendar/calendarutils.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/default/calendar/calendarutils.js b/modules/default/calendar/calendarutils.js index dc4b5c92..20c8ff0a 100644 --- a/modules/default/calendar/calendarutils.js +++ b/modules/default/calendar/calendarutils.js @@ -351,10 +351,8 @@ const CalendarUtils = { if (24 - dh <= Math.abs(dateoffset / 60)) { // if the rrule byweekday WAS explicitly set , correct it if (curEvent.rrule.origOptions.byweekday !== undefined) { - if (curEvent.rrule.origOptions.byweekday !== undefined) { - // apply the correction to the date/time back to right day - date = new Date(date.getTime() + Math.abs(24 * 60) * 60000); - } + // apply the correction to the date/time back to right day + date = new Date(date.getTime() + Math.abs(24 * 60) * 60000); } // the duration was calculated way back at the top before we could correct the start time.. // fix it for this event entry