new features
This commit is contained in:
@@ -393,7 +393,9 @@ class EventsService {
|
||||
* Capped at 100 instances and 2 years from the start date. */
|
||||
private generateRecurrenceDates(startDate: Date, _endDate: Date, config: WiederholungConfig): Date[] {
|
||||
const dates: Date[] = [];
|
||||
const limitDate = config.bis ? new Date(config.bis + 'T23:59:59Z') : new Date(0);
|
||||
const defaultLimit = new Date(startDate);
|
||||
defaultLimit.setUTCFullYear(defaultLimit.getUTCFullYear() + 2);
|
||||
const limitDate = config.bis ? new Date(config.bis + 'T23:59:59Z') : defaultLimit;
|
||||
const interval = config.intervall ?? 1;
|
||||
// Cap at 100 instances max, and 2 years
|
||||
const maxDate = new Date(startDate);
|
||||
|
||||
Reference in New Issue
Block a user