Recurring date is showing wrong next date

This seems oddly intentional from the code. It always seems to base the recurring date off the different between the current date and today:

https://github.com/discourse/discourse/blob/master/plugins/discourse-local-dates/assets/javascripts/lib/local-date-builder.js.es6#L55

I tried changing this in the code to be localDate.datetime and the output was correct in the browser but 4 tests failed. It seemed they were ensuring it works this way, so now I’m wondering if I’m missing something @j.jaffeux? Recurring should be after the date you entered not the current date right?

4 Likes