Skip to content

Commit

Permalink
Use elevation adjusted sunrise and sunset for half-day zmanim
Browse files Browse the repository at this point in the history
Thanks Shai for catching this
  • Loading branch information
KosherJava authored Jul 23, 2024
1 parent 63403fd commit 9d01db2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4433,7 +4433,7 @@ public Date getSofZmanShmaMGA72MinutesToFixedLocalChatzos() {
* @see #getHalfDayBasedZman(Date, Date, double)
*/
public Date getSofZmanShmaGRASunriseToFixedLocalChatzos() {
return getHalfDayBasedZman(getSunrise(), getFixedLocalChatzos(), 3);
return getHalfDayBasedZman(getElevationAdjustedSunrise(), getFixedLocalChatzos(), 3);
}

/**
Expand All @@ -4453,7 +4453,7 @@ public Date getSofZmanShmaGRASunriseToFixedLocalChatzos() {
* @see #getHalfDayBasedZman(Date, Date, double)
*/
public Date getSofZmanTfilaGRASunriseToFixedLocalChatzos() {
return getHalfDayBasedZman(getSunrise(), getFixedLocalChatzos(), 4);
return getHalfDayBasedZman(getElevationAdjustedSunrise(), getFixedLocalChatzos(), 4);
}

/**
Expand Down Expand Up @@ -4493,7 +4493,7 @@ public Date getMinchaGedolaGRAFixedLocalChatzos30Minutes() {
* @see ZmanimCalendar#getHalfDayBasedZman(Date, Date, double)
*/
public Date getMinchaKetanaGRAFixedLocalChatzosToSunset() {
return getHalfDayBasedZman(getFixedLocalChatzos(), getSunset(), 3.5);
return getHalfDayBasedZman(getFixedLocalChatzos(), getElevationAdjustedSunset(), 3.5);
}

/**
Expand All @@ -4514,7 +4514,7 @@ public Date getMinchaKetanaGRAFixedLocalChatzosToSunset() {
* @see ZmanimCalendar#getHalfDayBasedZman(Date, Date, double)
*/
public Date getPlagHaminchaGRAFixedLocalChatzosToSunset() {
return getHalfDayBasedZman(getFixedLocalChatzos(), getSunset(), 4.75);
return getHalfDayBasedZman(getFixedLocalChatzos(), getElevationAdjustedSunset(), 4.75);
}

/**
Expand Down

0 comments on commit 9d01db2

Please sign in to comment.