M-amir-M / persian-datetime-picker

a persian (farsi) date time picker in flutter
BSD 3-Clause "New" or "Revised" License
181 stars 101 forks source link

fix addMonth bug #74

Open mrsaeedi opened 10 months ago

mrsaeedi commented 10 months ago

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.