Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
i * 2, // day
i * 0.5, // hour
i, // minute
0, // second
0 // ms
);
const endDate: Date = new Date(
now.getFullYear(), // year
now.getMonth(), // month
i * 2 + (i % 3), // day
i * 0.5, // hour
i, // minute
0, // second
0 // ms
);
const event = new calendarModule.CalendarEvent(
_eventTitles[i],
startDate,
endDate
);
_events.push(event);
}
this.set('events', _events);
}
}