mannylopez / TinyMoon

A tiny Swift library to calculate the moon phase for any given date, works super fast, and works completely offline.
MIT License
99 stars 1 forks source link

Same phase shown for two consecutive days #1

Closed mannylopez closed 5 months ago

mannylopez commented 6 months ago

Two consecutive days sometimes display the same moon phase (New, First Quarter, Full, Last Quarter).

Desired outcome: Only one day should display a distinct moon phase.

How to reproduce:

A synodic month is 29.53058770576. So, technically, 05/08/2024 is closer to "Day 0" of the lunar cycle.

Something to note is that this is all in UTC, so while 05/08/2024 is the new moon for UTC, in local time, UTC -7, the new moon is on 05/07/2024.

mannylopez commented 5 months ago

Fixed