iptdevs-design-system 2.7.119 → 2.7.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3481,10 +3481,9 @@ class CalculateQuotesService {
3481
3481
  setPlusOneMonth(originDate, isEndMonth) {
3482
3482
  let response = [];
3483
3483
  let oneDayMilis = 1000 * 3600 * 24;
3484
- let day = isEndMonth || (originDate.getMonth() === 1 && originDate.getDate() > 28) ? this.monthsDays[originDate.getMonth() + 1] : originDate.getDate();
3484
+ let day = isEndMonth ? this.monthsDays[(originDate.getMonth() + 1) % 12] : originDate.getDate();
3485
3485
  let plusMonthDate = new Date(originDate.getFullYear(), originDate.getMonth() + 1, day);
3486
- let initialDate = new Date(originDate.getFullYear(), originDate.getMonth() + 1, day);
3487
- response.push(initialDate);
3486
+ response.push(new Date(originDate.getFullYear(), originDate.getMonth() + 1, day));
3488
3487
  while (plusMonthDate.getDay() === 0) {
3489
3488
  plusMonthDate.setMilliseconds(originDate.getMilliseconds() - oneDayMilis);
3490
3489
  }