From 3e0619c2bbe937e2c2b905b4a0ac40fbe1ee2b77 Mon Sep 17 00:00:00 2001 From: Ely Date: Wed, 17 Jan 2024 14:50:33 -0700 Subject: [PATCH] actually implement shmita code --- .../com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java index 9325c9d0..05d4cae4 100644 --- a/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java +++ b/src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java @@ -1609,8 +1609,7 @@ public boolean isIsruChag() { * @return true if the current year is a Shmikta (Jubilee) year. */ public boolean isShmitaYear() { - int holidayIndex = getYomTovIndex(); - return holidayIndex == ISRU_CHAG; + return getJewishYear() % 7 == 0; } /**