PrimeCalendar icon indicating copy to clipboard operation
PrimeCalendar copied to clipboard

leap year issue

Open SudoDios opened this issue 2 years ago • 0 comments

HI. i create a calendar from this library. But when I take the date as millisecond from 30 esfand, it is equal to 1 farvardin 1774081800000 I checked and found out that 1404 is not a leap year at all. The year 1403 is a leap year. The library is wrong in leap years

Maybe this method is wrong : https://github.com/aminography/PrimeCalendar/blob/c3918445a6210697ec02aaaaf6eff169bb05d9a0/library/src/main/java/com/aminography/primecalendar/persian/PersianCalendarUtils.kt#L281

SudoDios avatar Mar 27 '22 14:03 SudoDios