hebcal/hebcal-js

`HDate.setTishreiMonth(13)` should wrap the year

Closed this issue · 1 comments

HDate.setTishreiMonth(13) should advance to Tishrei of the next year. For example:

var hd = new Hebcal.HDate('15 Nisan 5775');
console.log(hd.getTishreiMonth()); // 7
hd.setTishreiMonth(13);
console.log(hd.toString()); // 15 Tishrei 5775

It should log 15 Tishrei 5776.

Same issue with setMonth.