yakir8 / kosher_dart

GNU Lesser General Public License v2.1
20 stars 19 forks source link

parasha name is not displayed correctly if it is israel #15

Closed lcyper closed 2 years ago

lcyper commented 2 years ago
var jewishCalendar = JewishCalendar();
jewishCalendar.setInIsrael(true);

var hebrewDateFormatter = HebrewDateFormatter()..hebrewFormat = true;
var parasha = hebrewDateFormatter.formatWeeklyParsha(jewishCalendar);
print(parasha);

even if you change to FALSE it still shows the same. jewishCalendar.setInIsrael(false); there is currently a difference between israel and the rest of the world.

lcyper commented 2 years ago

i think i found a solution: use: hebrewDateFormatter.formatParsha(jewishCalendar) when jewishCalendar day is shabbos. that works!!