You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply trying to add/set a month or a year to the calender object when DAY_OF_MONTH is 30. It'll throw DateTimeException: Invalid Hijrah day of month: 30 because it has 29 days in the new month.
Fore ex:
calendar.add(UmmalquraCalendar.MONTH, 1)
// Or using set
calendar[UmmalquraCalendar.YEAR] =1446
This doesn't happen with Calender, it'll pick the last day of month of the new month instead.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Simply trying to add/set a month or a year to the calender object when DAY_OF_MONTH is 30. It'll throw
DateTimeException: Invalid Hijrah day of month: 30
because it has 29 days in the new month.Fore ex:
This doesn't happen with
Calender
, it'll pick the last day of month of the new month instead.Thanks in advance!
The text was updated successfully, but these errors were encountered: