Skip to content

Commit

Permalink
TefilaRules needed a public init, and added timezone init for jewishC…
Browse files Browse the repository at this point in the history
…alendar
  • Loading branch information
Elyahu41 committed Dec 27, 2023
1 parent 06b4483 commit 1dd4401
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Sources/KosherSwift/hebrewcalendar/JewishCalendar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,22 @@ public class JewishCalendar {
}

/**
* A constructor that initializes the date to the Date parameter. useModernHolidays and inIsrael will be set to false
* A constructor that initializes the timezone to the timezone parameter. useModernHolidays and inIsrael will be set to false
*
* @param date
* the <code>Date</code> to set the calendar to
* the <code>Timezone</code> to keep track of
*/
public init(timezone:TimeZone) {
self.timeZone = timezone
}

/**
* A constructor that initializes the date to the Date parameter with a timezone. useModernHolidays and inIsrael will be set to false
*
* @param date
* the <code>Date</code> to set the date to
* @param timezone
* the <code>Timezone</code> to keep track of
*/
public init(workingDate:Date, timezone:TimeZone) {
self.workingDate = workingDate
Expand Down
2 changes: 2 additions & 0 deletions Sources/KosherSwift/hebrewcalendar/TefilaRules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public class TefilaRules {
*/
public var mizmorLesodaRecitedErevYomKippurAndPesach = false;

public init() {}

/**
* Returns if <em>tachanun</em> is recited during <em>shacharis</em> on the day in question. There are the many
* <em>minhagim</em> based settings that are available in self class that control what days are set for
Expand Down

0 comments on commit 1dd4401

Please sign in to comment.