morilog / jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in php appliations, based on Jalali (Shamsi) DateTime class.
MIT License
856 stars 111 forks source link

CheckDate is always return true #91

Closed omer-jan closed 4 years ago

omer-jan commented 4 years ago

Hi Dears, please help echo(\Morilog\Jalali\CalendarUtils::checkDate(1391, 2, 30, true)); echo(\Morilog\Jalali\CalendarUtils::checkDate(2019, 2, 30, true)); according to documentation the first line should return true and the second line should return false but both return true .

morilog commented 4 years ago

The documents are not consistent. this package supports to 3000 jalali year. according to this, both dates are correct jalali dates