hebcal / hebcal-js

⛔️ DEPRECATED - a perpetual Jewish Calendar (JavaScript)
GNU General Public License v3.0
123 stars 40 forks source link

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

Closed Scimonster closed 8 years ago

Scimonster commented 9 years ago

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.

Scimonster commented 8 years ago

Same issue with setMonth.