From 723d0e5fcdc9313df623858aac656c8710de8f6a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 13 Sep 2026 19:09:41 +0000 Subject: [PATCH 1/2] Initial plan From 8c068492d55c8c3526246e31dcb1efba477fae31 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 13 Sep 2026 19:10:54 +0000 Subject: [PATCH 2/2] Fix Bahai Naw-Ruz year boundary check Co-authored-by: fitnr <714125+fitnr@users.noreply.github.com> --- src/convertdate/bahai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/convertdate/bahai.py b/src/convertdate/bahai.py index 2341aec..e785ebc 100644 --- a/src/convertdate/bahai.py +++ b/src/convertdate/bahai.py @@ -152,7 +152,7 @@ def from_jd(jd): gy = gregorian.from_jd(jd)[0] n_month, n_day = gregorian_nawruz(gy) - x = 1 if jd <= gregorian.to_jd(gy, n_month, 20) else 0 + x = 1 if jd < gregorian.to_jd(gy, n_month, n_day) else 0 year = gy - (EPOCH_GREGORIAN_YEAR + x) + 1 days = jd - to_jd(year, 1, 1)