mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
fix typo, duplcate line
This commit is contained in:
parent
174da38cc8
commit
11d17dd2c0
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user