Phase of Moon calculation is wrong by more than a week

Bug #1407773 reported by ron mmi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
astral
Fix Released
High
Simon Kennedy

Bug Description

According to the U.S. Naval Observatory, the Full moon was either January 4 or 5, 2015
But my test using astral.py gives the phase of the moon as 23 instead of 14 or 15

http://aa.usno.navy.mil/cgi-bin/aa_phases.pl?year=2014&month=12&day=22&nump=52&format=p
http://aa.usno.navy.mil/rstt/onedaytable?form=1&ID=AA&year=2015&month=1&day=5&state=WA&place=seattle

Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
>>> import datetime
>>> from pytz import timezone
>>> from astral import Astral
>>>
>>> a = Astral()
>>> city = a['Seattle']
>>>
>>> date = datetime.date( 2015,01,05 )
>>>
>>> print( 'Phase of moon: %d' % city.moon_phase( date ) )
Phase of moon: 23
>>>

Changed in astral:
status: New → In Progress
assignee: nobody → Simon Kennedy (sffjunkie)
importance: Undecided → High
Changed in astral:
status: In Progress → Fix Committed
Changed in astral:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.