Skip to content

Commit 5162a97

Browse files
authored
Return proper Daf Yomi Yerushalmi
Thanks @elazarrosenthal Closes #207
1 parent 5ad996e commit 5162a97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/*
22
* Zmanim Java API
3-
* Copyright (C) 2017 - 2021 Eliyahu Hershfeld
3+
* Copyright (C) 2017 - 2023 Eliyahu Hershfeld
44
*
55
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
66
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
77
* any later version.
88
*
99
* This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied
10-
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
10+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
1111
* details.
1212
* You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
13-
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA,
13+
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA,
1414
* or connect to: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
1515
*/
1616
package com.kosherjava.zmanim.hebrewcalendar;
@@ -24,7 +24,7 @@
2424
* "https://en.wikipedia.org/wiki/Daf_Yomi">Daf Yomi</a> page ({@link Daf}) for the a given date.
2525
*
2626
* @author &copy; elihaidv
27-
* @author &copy; Eliyahu Hershfeld 2017 - 2021
27+
* @author &copy; Eliyahu Hershfeld 2017 - 2023
2828
*/
2929
public class YerushalmiYomiCalculator {
3030

@@ -97,7 +97,7 @@ public static Daf getDafYomiYerushalmi(JewishCalendar calendar) {
9797
// Finally find the daf.
9898
for (int j = 0; j < BLATT_PER_MASSECTA.length; j++) {
9999

100-
if (total <= BLATT_PER_MASSECTA[j]) {
100+
if (total < BLATT_PER_MASSECTA[j]) {
101101
dafYomi = new Daf(masechta, total + 1);
102102
break;
103103
}

0 commit comments

Comments
 (0)