Phase of Moon calculation is wrong by more than a week

Bug #1407773 reported by ron mmi
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
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 gives the phase of the moon as 23 instead of 14 or 15

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 = 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.