Closed esemwy closed 8 years ago
Right, will look into it.
+1
I assume the issue is from here The new Date creates a new date to your Local device (ex: GMT+4) Then sets it to Zero so its Zero on local time not UTC, could be wrong responses.
SunCalc.getMoonTimes = function (date, lat, lng) { var t = new Date(date); t.setHours(0); t.setMinutes(0); t.setSeconds(0); t.setMilliseconds(0);
@ywadi great find! I'll looking into fixing this tomorrow if confirmed.
Fixed.
Tests 23 and 24 fail.
getMoonTimes returns moon rise and set times
not ok 23 should be equal
... not ok 24 should be equal
...