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

Wrong month value when converting from Hijri to Gregorian #4

Open
S66D opened this issue Dec 11, 2018 · 1 comment
Open

Wrong month value when converting from Hijri to Gregorian #4

S66D opened this issue Dec 11, 2018 · 1 comment

Comments

@S66D
Copy link

S66D commented Dec 11, 2018

return new Date(year + "/" + (month+1) + "/" + day);

Dear,
I get Invalid input when I investigated the issue I found the month +1 in line #L127 is not setting proper values, when I remove the '+1' it solve the problem, by the way I'm using Chrome

@nahlmb
Copy link

nahlmb commented Feb 8, 2021

return new Date(year + "/" + (month+1) + "/" + day);

Dear,
I get Invalid input when I investigated the issue I found the month +1 in line #L127 is not setting proper values, when I remove the '+1' it solve the problem, by the way I'm using Chrome

Jazakallah khoiron is solve me to

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

No branches or pull requests

2 participants