Skip to content

Commit

Permalink
ensure that we get the proper sunset when using astronomical chatzos …
Browse files Browse the repository at this point in the history
…for mincha gedola
  • Loading branch information
zachweix authored Aug 10, 2023
1 parent c523424 commit 1b8f2fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/kosherjava/zmanim/ZmanimCalendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ public Date getSofZmanTfilaMGA() {
*/
public Date getMinchaGedola(Date startOfDay, Date endOfDay) {
if(isUseAstronomicalChatzosForOtherZmanim()) {
return getHalfDayBasedZman(getChatzos(), endOfDay, 0.5);
return getHalfDayBasedZman(getSunTransit(), endOfDay, 0.5);
} else {
return getShaahZmanisBasedZman(startOfDay, endOfDay, 6.5);
}
Expand Down Expand Up @@ -654,7 +654,7 @@ public Date getMinchaGedola(Date startOfDay, Date endOfDay) {
*/
public Date getMinchaGedola() {
if(isUseAstronomicalChatzosForOtherZmanim()) {
return getHalfDayBasedZman(getChatzos(), getSunset(), 0.5);
return getHalfDayBasedZman(getSunTransit(), getSunset(), 0.5);
} else {
return getMinchaGedola(getElevationAdjustedSunrise(), getElevationAdjustedSunset());
}
Expand Down

0 comments on commit 1b8f2fb

Please sign in to comment.