Commit graph

4 commits

Author SHA1 Message Date
Aric Camarata
178e990cbc fix: normalize date to UTC calendar day so prayer times are host-timezone-independent
getTimes now constructs civDate = DateTime.utc(date.year, date.month, date.day, 12, 0, 0)
at entry and passes it to both getSpa and getAngles. Previously a local DateTime in a
positive-UTC-offset zone (e.g. UTC+12) would reach getSpa.toUtc() as the previous UTC
calendar day, shifting all prayer times by ~24 h. Regression tests added for UTC/local
DateTime consistency across UTC, EDT, and Auckland host timezones (27 tests, all pass).
2026-06-13 10:37:32 -04:00
Aric Camarata
fc01b129f4 docs: update README, add wiki docs, and document types (P1) 2026-05-30 20:16:21 -04:00
Aric Camarata
971022734e Refactor: use nrel_spa package instead of bundled SPA
Replace the 1280-line bundled SPA implementation with a dependency on
the nrel_spa package. SpaResult and SpaAnglesResult are now re-exported
from nrel_spa for backwards compatibility. All 24 tests pass unchanged.
2026-03-08 13:10:16 -04:00
Aric Camarata
9167d86c7b Initial release: pray_calc_dart v1.0.0 2026-03-08 12:48:40 -04:00