Skip to content

Commit 58d6288

Browse files
authored
Fix getSolarMidnight() - add 12 not 24 hours
1 parent a745d89 commit 58d6288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/kosherjava/zmanim/ComplexZmanimCalendar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3797,7 +3797,7 @@ public Date getSofZmanBiurChametzMGA16Point1Degrees() {
37973797
public Date getSolarMidnight() {
37983798
ZmanimCalendar clonedCal = (ZmanimCalendar) clone();
37993799
clonedCal.getCalendar().add(Calendar.DAY_OF_MONTH, 1);
3800-
return getTimeOffset(getChatzos(), clonedCal.getChatzos().getTime() - getChatzos().getTime());
3800+
return getTimeOffset(getChatzos(), (clonedCal.getChatzos().getTime() - getChatzos().getTime()) / 2);
38013801
}
38023802

38033803
/**

0 commit comments

Comments
 (0)