Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #6 #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixes #6 #35

wants to merge 1 commit into from

Conversation

xqjibz
Copy link

@xqjibz xqjibz commented Oct 28, 2014

This fixes the issue #6, this is before the fix:

> s.getPosition(date,50.5,30.5).azimuth * (180/Math.PI)
-143.25764539039318

and after, all in degrees, because I'm unable to read radians :)

> s.getPosition(date,50.5,30.5).azimuth * (180/Math.PI)
36.742354609606814

tests updated too

@xqjibz xqjibz mentioned this pull request Oct 28, 2014
sonicbluesky added a commit to sonicbluesky/suncalc that referenced this pull request Jan 21, 2025
use the fix xqjibz recommended. upstream (mourner) never merged xqjibz's pull request because it would've broken dependent apps. it was suggested to merge the pr with a major version increment in order to avoid dependent apps automatically updating, but that suggestion was never heeded. my repo doesn't have dependent apps right now so i can go ahead and just solve this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant