0
Not a bug
Uziel 10 months ago • updated by Michael J. Radwin 10 months ago 3

Hi!

I'm having a bug, since my application is using your rest API for getting shabbat times, and its looking for two categories: "candles", "havdala".

But this week, since 1st candle of Hanuka is occuring in Motzei Shabat, there category "havdala" is missing, causing an exception in my application.

Answer

Answer

If you see a candle lighting time event on a Saturday night you can assume that it signifies both Havdalah and candle lighting for the holiday.

Not a bug

Hebcal is working as designed. If a holiday begins on motzei Shabbat, there will be a Candle lighting event, not a Havdalah event. Your application will need to E modified to handle this case.

That should be right for candle lightning of YomTov, but Chanuka candle lightning occurs along with the havdalah.

Anyway, is there a simple way to extract Motzei Shabbat time from the REST API for any generic case?

Answer

If you see a candle lighting time event on a Saturday night you can assume that it signifies both Havdalah and candle lighting for the holiday.