hebcal / hebcal-js

⛔️ DEPRECATED - a perpetual Jewish Calendar (JavaScript)
GNU General Public License v3.0
123 stars 40 forks source link

Havdalah returns correct havdalah time but for Friday instead of Saturday #30

Closed dannycohn closed 7 years ago

dannycohn commented 8 years ago

var today = hebcal.find('today')[0]; var havdalah = today.havdalah();

Run this on a Saturday (or set the computer's clock to Saturday). The time components in havdalah will be correct, but the date will be for Friday.

Scimonster commented 7 years ago

Or you know, just ask it for a Saturday date. ;)

I am able to reproduce this bug, but i am quite confused as to what is going on here. My own code has outsmarted me here. I think it has something to do with the location being set, or not.

Scimonster commented 7 years ago

Seems related to #9.

Scimonster commented 7 years ago

Has been fixed in the latest version.