hijri-dates icon indicating copy to clipboard operation
hijri-dates copied to clipboard

No support for "umm alqura" calendar

Open mohamad-dekmak opened this issue 5 years ago • 0 comments

Hello, I tried to use this library but I found that there are no support for the Hijri Calendar "umm alqura". This is an example: $date_gregorian = \GeniusTS\HijriDate\Hijri::convertToGregorian(01, 04, 1440); it should return the Gregorian date "2018-12-08" based on the official Hijri calendar (http://www.ummulqura.org.sa). But in fact, it returns "2018-12-09". Note that, all days in the month "03" are valid but starting from the month "04" it will return wrong date. It seems that, it counts 30 days in the month "03" which is wrong as it is 29 days.

mohamad-dekmak avatar Nov 14 '18 15:11 mohamad-dekmak