fix typo, duplcate line

This commit is contained in:
Sam Detweiler 2022-09-06 13:29:08 -05:00
parent 174da38cc8
commit 11d17dd2c0

View File

@ -350,12 +350,10 @@ const CalendarUtils = {
// if the date hour is less than the offset // if the date hour is less than the offset
if (24 - dh <= Math.abs(dateoffset / 60)) { if (24 - dh <= Math.abs(dateoffset / 60)) {
// if the rrule byweekday WAS explicitly set , correct it // if the rrule byweekday WAS explicitly set , correct it
if (curEvent.rrule.origOptions.byweekday !== undefined) {
if (curEvent.rrule.origOptions.byweekday !== undefined) { if (curEvent.rrule.origOptions.byweekday !== undefined) {
// apply the correction to the date/time back to right day // apply the correction to the date/time back to right day
date = new Date(date.getTime() + Math.abs(24 * 60) * 60000); 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.. // the duration was calculated way back at the top before we could correct the start time..
// fix it for this event entry // fix it for this event entry
//duration = 24 * 60 * 60 * 1000; //duration = 24 * 60 * 60 * 1000;