`HDate.getTishreiMonth()` in Elul returns 0
Closed this issue · 0 comments
Scimonster commented
Easy fix, just add an ||
clause to return MONTHS_IN_YEAR
if it's 0 (due to %
).
var hd = new Hebcal.HDate('15 Elul');
console.log(hd.getTishreiMonth()); // 0