convertdate icon indicating copy to clipboard operation
convertdate copied to clipboard

hebrew.monthcalendar returns a 6-day week

Open clsn opened this issue 2 years ago • 1 comments

from convertdate import hebrew hebrew.monthcalendar(5782, 10) [[1, 2, 3, 4, 5, 6, 7], [8, 9, 10, 11, 12, 13, 14], [15, 16, 17, 18, 19, 20, 21], [22, 23, 24, 25, 26, 27, 28], [29, None, None, None, None, None]]

Note that the last element, which is supposed to be a week, has only six elements instead of seven, like it does in other cases. Have not yet tracked down the source of the problem.

clsn avatar May 22 '23 22:05 clsn

utils.monthcalendarhelper(start_weekday, month_length) is buggy when start_weekday is 6, though it doesn't seem to be a problem when the month_length is less than 29.

clsn avatar May 22 '23 22:05 clsn