Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Smith committed Dec 28, 2023
1 parent ddc38a1 commit 427dade
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Binary file not shown.
5 changes: 3 additions & 2 deletions Sources/KosherSwift/HebrewCalendar/AstronomicalCalendar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ public class AstronomicalCalendar {
return degrees
}



public func getLocalMeanTime(hours: Double) -> Date? {
AstronomicalCalendar.getTimeOffset(time: getDateFromTime(time: hours - Double(location.timezone.secondsFromGMT()) / AstronomicalCalendar.hourMillis, isSunrise: true), offset: -location.localMeanTimeOffset);
}
}

extension AstronomicalCalendar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ public class ComplexZmanimCalendar: ZmanimCalendar {
}

public func getFixedLocalChatzos() -> Date? {
let time = getDateFromTime(time: 12 - Double(location.timezone.secondsFromGMT() * 1000) / AstronomicalCalendar.hourMillis, isSunrise: true)
let offset = -location.localMeanTimeOffset
return AstronomicalCalendar.getTimeOffset(time: time, offset: offset)
getLocalMeanTime(hours: 12.0);
}

public func latestShemaKolEliyahu() -> Date? {
Expand Down

0 comments on commit 427dade

Please sign in to comment.