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

Why dates beyond 1500 AH not supported. #53

Open anshu-git opened 4 years ago

anshu-git commented 4 years ago

We are using the moment-hijri in a datepicker component. There we have noticed that if we try to get a date of 1501 or above it returns NaN. Infact I can see the comments in js also that it will return dates till year 1500 only. Any particular reason for this?

AIZGames commented 4 years ago

We are using the moment-hijri in a datepicker component. There we have noticed that if we try to get a date of 1501 or above it returns NaN. Infact I can see the comments in js also that it will return dates till year 1500 only. Any particular reason for this?

Hi anshu-git, Did you find a solution for this?

jehajj commented 4 years ago

I am facing this issue for dates before 1369 any idea?

MohammedSaberMohammed commented 1 year ago

For any one who are facing this issue, after a long search I didn't find any reasonable reason for this issue so I'm using a utils to convert from gregorian to Hijri and vice versa without using moment-hijri

Utils Url