xsoh / moment-hijri

A Hijri calendar (Based on Umm al-Qura calculations) plugin for moment.js
http://momentjs.com/docs/#/plugins/hijri/
MIT License
200 stars 82 forks source link

iDaysInMonth() gives number of days as 1 for some month of a year #68

Open natashajaved opened 3 years ago

natashajaved commented 3 years ago

I am trying to find number of days in a hijri year, for that I'm looping over days in months and found strange case that for 1 month of the year the number of days returned is 1.

Please observe the attached images. This is an urgent issue. I have chosen this library and started it's implementation. this case is disrupting a major flow.

This is for timezone America/New_York and I'm using moment-timezone for setting zones

daysInmonthissue1 daysInmonthissue2