Skip to content

Commit

Permalink
bug fix for tekufa
Browse files Browse the repository at this point in the history
  • Loading branch information
Elyahu41 committed Dec 27, 2023
1 parent fd8c6ea commit 20952a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/KosherSwift/hebrewcalendar/JewishCalendar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,9 @@ public class JewishCalendar {

return elapsedDays
}




/**
* returns the number of days from Rosh Hashana of the date passed in, to the full date passed in.
Expand All @@ -1099,7 +1102,7 @@ public class JewishCalendar {
private func getDaysInJewishMonth(month:Int, year:Int) -> Int {
if ((month == JewishCalendar.IYAR) || (month == JewishCalendar.TAMMUZ) || (month == JewishCalendar.ELUL) || ((month == JewishCalendar.CHESHVAN) && !(isCheshvanLong(year: year)))
|| ((month == JewishCalendar.KISLEV) && isKislevShort(year: year)) || (month == JewishCalendar.TEVES)
|| ((month == JewishCalendar.ADAR) && !(isJewishLeapYear(year: year))) || (month == JewishCalendar.ADAR_II)) {
|| ((month == JewishCalendar.ADAR && isJewishLeapYear(year: year)) && !(isJewishLeapYear(year: year))) || (month == JewishCalendar.ADAR_II)) {
return 29;
} else {
return 30;
Expand Down

0 comments on commit 20952a6

Please sign in to comment.