-
Notifications
You must be signed in to change notification settings - Fork 10
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
getUpcomingLastQuarter skipping actual next date of last quarter moon phase #21
Comments
quote from MDN docs : Date
So |
@hjy1210 thank. That is correct.
|
I am not expecting to get moon phase for Jan, which absolutely would mean I had screwed up the month.
|
Now I understand what you mean. Sorry for mis-understanding. I modify your snippet as follows:
Then I got result:
Note: "getUpcomingNewMoon: 2021-03-13T10:22:44.000Z" is BEFORE "start date: 2021-03-14T00:00:00.000Z" This issue thread is closed by the author, so I suggest you raise new issue about this fact. |
I got data from https://tidesandcurrents.noaa.gov/moon_phases.shtml?year=2021&data_type=monMar and
Compare with result got from astronomy-bundle
There is more than one minute of difference for every event. Following are my suggestions:
|
If I run this
Assuming I am not missing something, lastQuarterDate should be on the 4th of Feb 2021.
Instead, what I am getting is the 6th of March 2021, which is the date of the last quarter moon phase after the upcoming last quarter.
(library version is 5.17.8)
The text was updated successfully, but these errors were encountered: