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

Hijri isSameMonth incorrect #481

Open
hazem3500 opened this issue Oct 6, 2020 · 0 comments
Open

Hijri isSameMonth incorrect #481

hazem3500 opened this issue Oct 6, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@hazem3500
Copy link

isSameMonth method returns true even if two dates aren't in the same Hijri month

const date1 = hijri.date("10/06/2020");
const date2 = hijri.addHours(date1, 13 * 24);

  date1.format("iYYYY/iM/iD") // 1442/2/19
date2.format("iYYYY/iM/iD") // 1442/3/2
hijri.isSameMonth(date1, date2) // true (it should return false)

Here is a link to reproduce the issue: link

@dmtrKovalenko dmtrKovalenko added the good first issue Good for newcomers label Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants