Removed duplicated and thus superfluous debug messages.

This commit is contained in:
Julian Dinter 2021-08-22 14:06:24 +02:00
parent a1fc38c5fe
commit e7f06f5c0c

View File

@ -334,9 +334,8 @@ const CalendarUtils = {
if (dateoffset < 0) { if (dateoffset < 0) {
// If the date hour is less than the offset // If the date hour is less than the offset
if (dh < Math.abs(dateoffset / 60)) { if (dh < Math.abs(dateoffset / 60)) {
// reduce the time by the offset // Reduce the time by the offset:
Log.debug(" recurring date is " + date + " offset is " + dateoffset); // Apply the correction to the date/time to get it UTC relative
// apply the correction to the date/time to get it UTC relative
date = new Date(date.getTime() - Math.abs(nowOffset) * 60000); date = new Date(date.getTime() - Math.abs(nowOffset) * 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
@ -363,9 +362,8 @@ const CalendarUtils = {
if (dateoffset < 0) { if (dateoffset < 0) {
// if the date hour is less than the offset // if the date hour is less than the offset
if (dh < Math.abs(dateoffset / 60)) { if (dh < Math.abs(dateoffset / 60)) {
// reduce the time by the offset // Reduce the time by the offset:
Log.debug(" recurring date is " + date + " offset is " + dateoffset); // Apply the correction to the date/time to get it UTC relative
// apply the correction to the date/time to get it UTC relative
date = new Date(date.getTime() - Math.abs(nowOffset) * 60000); date = new Date(date.getTime() - Math.abs(nowOffset) * 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