In this fixed bug, when adding a month to the previous month and the day is equal to a day that does not exist in the new month, for example, 30 days in Esfand, it caused an error 'Jalali day is out of valid range.' By setting it equal to the maximum day of that month, the bug was fixed.
In this fixed bug, when adding a month to the previous month and the day is equal to a day that does not exist in the new month, for example, 30 days in Esfand, it caused an error 'Jalali day is out of valid range.' By setting it equal to the maximum day of that month, the bug was fixed.