Throw Exception for 1408, 1412, 1416, etc
fardinfrd opened this issue · 2 comments
fardinfrd commented
Hi developers
I have problem with this code:
PersianDate persianDate = new PersianDate();
persianDate.setShYear(1408);
persianDate.setShMonth(1);
persianDate.setShDay(1);
//some lines of code
new PersianDate(persianDate.getTime());
Upper code throws exception:
Method threw 'java.lang.ArrayIndexOutOfBoundsException' exception.
java.lang.ArrayIndexOutOfBoundsException: length=13; index=-1
I use version 0.8.
thanks
samanzamani commented
Hi @fardinfrd
Thank you for the report
I will check this
samanzamani commented
Bug fixed in v1.0