hebcal / hebcal-js

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

Wrong Gregorian Date for Molad #25

Open psycomp opened 8 years ago

psycomp commented 8 years ago

I haven't started extensive testing, but today (May 9th) is Rosh Chodesh Iyar day #2, and the library says that the english date for the molad is "Fri May 13 2016 22:59:56 GMT-0400 (EDT)", which I believe is exactly 1 week late.

Sample Code: var year = new Hebcal; var date = new Hebcal.HDate(); console.log(year.getMonth(date.getMonth()).molad());

FWIW, the date/time of the molad is Jerusalem Solar Time, and it would be really cool to convert it to local solar time, and then local standard time, for calculating things like earliest/latest time to say kiddush levana.

mjfeintuch commented 5 years ago

I am having the same issue. It seems to be way off when generating the date object.