Skip to content

Commit

Permalink
Fix Incorrect Isha Time & Typo (#2)
Browse files Browse the repository at this point in the history
- Change isha parameter from angle.getFairAngle() to angle.getIshaAngle
 - Change method name from getFairAngle to getFajrAngle
  • Loading branch information
sigitbn authored and ahmedeltaher committed Mar 22, 2017
1 parent 096c3d3 commit 530a286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions azan/src/main/java/com/azan/TimeCalculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ public PrayerTimes calculateTimes() {
double latitude = this.latitude;
return new PrayerTimes((long) (julianDay - JAVA_DATE_EPOCH_JD) * HOURS_IN_DAY * MINUTE_IN_HOUR *
SECOND_IN_MINUTE * MILLIS_IN_SECOND,
fajr(transit, latitude, declinationDegrees, angle.getFairAngle()) + adjustments
fajr(transit, latitude, declinationDegrees, angle.getFajrAngle()) + adjustments
.getFajr() / MINUTE_IN_HOUR_DOUBLE,
sunrise(transit, latitude, declinationDegrees, this.height) + adjustments.getSunrise() / MINUTE_IN_HOUR_DOUBLE,
transit + adjustments.getZuhr() / MINUTE_IN_HOUR_DOUBLE,
asr(transit, latitude, declinationDegrees, this.asrRatio) + adjustments.getAsr() / MINUTE_IN_HOUR_DOUBLE,
maghrib(transit, latitude, declinationDegrees, this.height) + adjustments.getMaghrib() / MINUTE_IN_HOUR_DOUBLE,
isha(transit, latitude, declinationDegrees, angle.getFairAngle()) + adjustments.getIsha() / MINUTE_IN_HOUR_DOUBLE);
isha(transit, latitude, declinationDegrees, angle.getIshaAngle()) + adjustments.getIsha() / MINUTE_IN_HOUR_DOUBLE);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum AngleCalculationType {
this.isha = isha;
}

public double getFairAngle() {
public double getFajrAngle() {
return fajr;
}

Expand Down

0 comments on commit 530a286

Please sign in to comment.