hebcal/hebcal-js

Get next/previous month

tamarklg opened this issue · 4 comments

I'm using your library and it's very helpful...

I came across a little bug:
When I try to add/subtract 1 month to/from a date that is the last day of full month (30 days),
the result is - the first day of next 2 months.
e.g.
ל סיון + חודש 1 = א אב

What is your expected behavior? It tries to add a month to be ל תמוז, which doesn't exist, so it rolls over to א אב.

I expect it to behave like moment.js.
When you try to add 1 month to: 31/10/2019, the result is: 30/11/2019.

Thanks