Skip to content

Commit

Permalink
fix zmaniyot based methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Elyahu41 committed Dec 24, 2023
1 parent dcfb71e commit d404f54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KosherSwift/ZmanimCalendar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1104,8 +1104,8 @@ public class ZmanimCalendar : AstronomicalCalendar {
* {@link AstronomicalCalendar} documentation.
*/
public func getShaahZmanisBasedZman(startOfDay:Date?, endOfDay:Date?, hours:Double) -> Date? {
let shaahZmanis = getTemporalHour(startOfDay: startOfDay, endOfDay: endOfDay);
return ZmanimCalendar.getTimeOffset(time: startOfDay, offset: shaahZmanis * Int64(hours));
let shaahZmanis = Double(getTemporalHour(startOfDay: startOfDay, endOfDay: endOfDay));
return ZmanimCalendar.getTimeOffset(time: startOfDay, offset: shaahZmanis * Double(hours));
}

/**
Expand Down

0 comments on commit d404f54

Please sign in to comment.