Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iDaysInMonth() returns NaN #39

Open
kilkki opened this issue May 30, 2018 · 1 comment
Open

iDaysInMonth() returns NaN #39

kilkki opened this issue May 30, 2018 · 1 comment

Comments

@kilkki
Copy link

kilkki commented May 30, 2018

Hi!

Getting the number of days in the month doesn't work.

Method iDaysInMonth() returns value 'NaN'.

Workaround:
Method endOf('iMonth').iDate() return value correctly.

@ralphnajm
Copy link

This is caused because the underlying method used in iDaysInMonth gets the days in arabic language and parseInt doesn't parse arabic numbers.
I will create a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants