You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The isSameOrAfter() method in jalali-moment library does not return the expected result when comparing a Jalali date with a valid date.
To Reproduce:
constresult=moment('1402-02-30','jYYYY-jM-jD').isSameOrAfter('1402-02-30');console.log(result);// Returns false, but expected true
Expected Result:
The isSameOrAfter() method should return true when comparing the same Jalali date.
Actual Result:
The isSameOrAfter() method returns false instead of true when comparing the same Jalali date.
Additional Information:
jalali-moment version: "^3.3.11"
Workaround:
A possible workaround is to validate the input dates before performing the comparison to ensure they are valid Jalali dates.
The text was updated successfully, but these errors were encountered:
valakhosravi
changed the title
The isSameOrAfter() method in jalali-moment library does not return the expected result when comparing a Jalali date with a valid date.
The isSameOrAfter() method does not return the expected result when comparing a Jalali date with a valid date.
May 29, 2023
Bug Description:
The
isSameOrAfter()
method injalali-moment
library does not return the expected result when comparing a Jalali date with a valid date.To Reproduce:
Expected Result:
The
isSameOrAfter()
method should returntrue
when comparing the same Jalali date.Actual Result:
The
isSameOrAfter()
method returnsfalse
instead oftrue
when comparing the same Jalali date.Additional Information:
jalali-moment
version: "^3.3.11"Workaround:
A possible workaround is to validate the input dates before performing the comparison to ensure they are valid Jalali dates.
The text was updated successfully, but these errors were encountered: