Skip to content

Hijri isSameMonth incorrect #481

@hazem3500

Description

@hazem3500

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions