Skip to content

Commit

Permalink
fix typo, duplcate line
Browse files Browse the repository at this point in the history
  • Loading branch information
sdetweil committed Sep 6, 2022
1 parent 174da38 commit 11d17dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/default/calendar/calendarutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11d17dd

Please sign in to comment.