Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug !!! #34

Closed
dickermoshe opened this issue Mar 27, 2023 · 1 comment
Closed

Bug !!! #34

dickermoshe opened this issue Mar 27, 2023 · 1 comment

Comments

@dickermoshe
Copy link

dickermoshe commented Mar 27, 2023

Adding this to the original KosherJava package was a mistake:

DateTime? getCandleLighting() {

The original package does not account whether there is Candle Lighting on that day, or whether to calculate 18 min before sunset on Shabbos or after Tzais on 2nd day Yom Tov or 3-day Yom Tov.

You also don't account for second day Yom Tov outside of the US.
You only reference the possibility of a 2 day yom tov for JewishCalendar.ROSH_HASHANA.

Running the following code for the US on April 6th 2023 will crash even though there is candle lighting on that date.

ComplexZmanimCalendar zmanim = ComplexZmanimCalendar.intGeoLocation(geoLocation);
bool isThereCandleLighting = JewishCalendar.fromDateTime(z.getCalendar()).hasCandleLighting();
if (isThereCandleLighting){
    zmanim.getCandleLighting() // <<-- Will still return null !!!!!
}

The complexities of KosherJava are such that any port should try to copy it exactly.

@yakir8
Copy link
Owner

yakir8 commented Aug 25, 2024

thinks i am closing this the fix is on kosher_dart 2.0.17

@yakir8 yakir8 closed this as completed Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants