Skip to content

Commit

Permalink
fix nadir, + not -, upstream pr#125
Browse files Browse the repository at this point in the history
use correction suggested by andiling, and implemented over on suncalc3 by Hypnos3
  • Loading branch information
sonicbluesky committed Jan 21, 2025
1 parent 34ebc96 commit 5baa6eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suncalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ SunCalc.getTimes = function (date, lat, lng, height) {

var result = {
solarNoon: fromJulian(Jnoon),
nadir: fromJulian(Jnoon - 0.5)
nadir: fromJulian(Jnoon + 0.5)
};

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

1 comment on commit 5baa6eb

@sonicbluesky
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this commit references upstream pr #125

Please sign in to comment.