Skip to content

Commit 9041dc9

Browse files
authored
isYomTov() should return false on Erev Shavuos
Thanks @eitan613. Closes #200
1 parent fdf6c55 commit 9041dc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/kosherjava/zmanim/hebrewcalendar/JewishCalendar.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Zmanim Java API
3-
* Copyright (C) 2011 - 2022 Eliyahu Hershfeld
3+
* Copyright (C) 2011 - 2023 Eliyahu Hershfeld
44
* Copyright (C) September 2002 Avrom Finkelstien
55
* Copyright (C) 2019 - 2022 Y Paritcher
66
*
@@ -42,7 +42,7 @@
4242
* @see java.util.Calendar
4343
* @author © Y. Paritcher 2019 - 2022
4444
* @author © Avrom Finkelstien 2002
45-
* @author © Eliyahu Hershfeld 2011 - 2022
45+
* @author © Eliyahu Hershfeld 2011 - 2023
4646
*/
4747
public class JewishCalendar extends JewishDate {
4848
/** The 14th day of Nissan, the day before of Pesach (Passover).*/
@@ -771,7 +771,7 @@ public int getYomTovIndex() {
771771
*/
772772
public boolean isYomTov() {
773773
int holidayIndex = getYomTovIndex();
774-
if ((isErevYomTov() && (holidayIndex != HOSHANA_RABBA && (holidayIndex == CHOL_HAMOED_PESACH && getJewishDayOfMonth() != 20)))
774+
if ((isErevYomTov() && (holidayIndex != HOSHANA_RABBA || (holidayIndex == CHOL_HAMOED_PESACH && getJewishDayOfMonth() != 20)))
775775
|| (isTaanis() && holidayIndex != YOM_KIPPUR) || holidayIndex == ISRU_CHAG) {
776776
return false;
777777
}

0 commit comments

Comments
 (0)