Does not calculate number of recurrences correctly
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3005922. --> Reported by: [lebachai](https://www.drupal.org/user/66141) >>> <p>I am working with Recurring Date Field on a clean install of Drupal 8.6x. I have applied this <a href="https://www.drupal.org/files/issues/2018-09-25/2923774-date_recur-weekly_wrong_day-7.patch">patch</a>, in order to make the interactive widget use the correct weekdays, but have done no other config of the module or other patches.</p> <p>When I create a date, it now calculates the correct weekday, but does not calculate the number of occurrences correctly. In the screenshots, attached, I created a recurring date that was only for 2 instances (see "edit.png"), but the result was five (see "result.png"). In addition, when I go back to edit, the "End" option has reverted to the "Never" default and seems to have lost my specified number entirely (see "after_saving.png").</p> <p>Am I doing something wrong, or is this a bug? Thank you for any help!</p>
issue