Skip to content

Commit 5baa6eb

Browse files
author
sonicbluesky
committed
fix nadir, + not -, upstream pr#125
use correction suggested by andiling, and implemented over on suncalc3 by Hypnos3
1 parent 34ebc96 commit 5baa6eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

suncalc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ SunCalc.getTimes = function (date, lat, lng, height) {
163163

164164
var result = {
165165
solarNoon: fromJulian(Jnoon),
166-
nadir: fromJulian(Jnoon - 0.5)
166+
nadir: fromJulian(Jnoon + 0.5)
167167
};
168168

169169
for (i = 0, len = times.length; i < len; i += 1) {

0 commit comments

Comments
 (0)