Commit graph

3 commits

Author SHA1 Message Date
Aric Camarata
de3f9c8c67 style: apply dart format 2026-06-13 11:57:58 -04:00
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
9167d86c7b Initial release: pray_calc_dart v1.0.0 2026-03-08 12:48:40 -04:00