Skip to content

Commit f34ae1f

Browse files
authored
Fix next month year calculation for Hebrew calendar
1 parent 05d6167 commit f34ae1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/yidcal/yidcal_lib/specials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def get_special_shabbos_name(today: date | dates.GregorianDate | dates.HebrewDat
112112
# Next month/year
113113
if shabbat_heb.month == 13 or (shabbat_heb.month == 12 and not hebrewcal.Year(shabbat_heb.year).leap):
114114
next_month_num = 1
115-
next_month_year = shabbat_heb.year + 1
115+
next_month_year = shabbat_heb.year # Nissan is still in the same pyluach year
116116
else:
117117
next_month_num = shabbat_heb.month + 1
118118
next_month_year = shabbat_heb.year

0 commit comments

Comments
 (0)