mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
FIX: ensures recurring works when setting a start date in future (#11587)
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user