Commit graph

4 commits

Author SHA1 Message Date
Aric Camarata
c79368a4ee fix: interpret DateTime by UTC calendar day for exact round-trips
toHijri in both UAQ and FCNA engines read .year/.month/.day from the
input DateTime — local calendar components — then passed them to
DateTime.utc(). On hosts west of UTC a UTC-midnight local DateTime
resolves to the previous local day, causing toHijri(toGregorian(y,m,d))
to return the wrong Hijri day.

Fix: call date.toUtc() first in both engines before extracting calendar
components. This is symmetric with toGregorian which always returns
DateTime.utc(). Adds 3 regression tests covering the round-trip and the
local-DateTime-on-UTC-west-host case.
2026-06-13 10:28:16 -04:00
Aric Camarata
b7ca4e00bf chore: polish pubspec, add wiki docs and CHANGELOG 2026-05-29 06:34:30 -04:00
Aric Camarata
d8eec86e9f chore(config): add AGENTS.md for dual-harness parity 2026-05-25 15:51:07 -04:00
Aric Camarata
ba0061ae60 Initial release: hijri_core v1.0.0 2026-03-08 13:03:11 -04:00