FIX: ensures recurring works when setting a start date in future (#11587)

This commit is contained in:
Joffrey JAFFEUX
2020-12-29 20:11:18 +01:00
committed by GitHub
parent 09f9d4b281
commit 8af6e72675
2 changed files with 17 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export default class LocalDateBuilder {
localTimezone: this.localTimezone,
});
if (this.recurring) {
if (this.recurring && moment().isAfter(localDate.datetime)) {
const [count, type] = this.recurring.split(".");
const repetitionsForType = localDate.repetitionsBetweenDates(