Skip to content
4 changes: 2 additions & 2 deletions src/main/java/com/kosherjava/zmanim/AstronomicalCalendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ protected enum SolarEvent {
* @param time
* The time to be set as the time for the <code>Instant</code>. The time expected is in the format: 18.75
* for 6:45:00 PM.time is sunrise and false if it is sunset
* @param solarEvent the type of {@link SolarEvent}
* @param solarEvent the type of {@link SolarEvent}.
* @return The Instant object representation of the time double
*/

Expand Down Expand Up @@ -749,7 +749,7 @@ public Instant getLocalMeanTime(double hours) {

double rawOffset = getGeoLocation().getZoneId().getRules().getOffset(getMidnightLastNight().toInstant()).getTotalSeconds() * 1000;
double utcTime = hours - rawOffset / (double) HOUR_MILLIS;
Instant instant = getInstantFromTime(utcTime, SolarEvent.SUNRISE);
Instant instant = getInstantFromTime(utcTime, null);

return getTimeOffset(instant, -getGeoLocation().getLocalMeanTimeOffset(getMidnightLastNight().toInstant()));
}
Expand Down
Loading
Loading