Skip to content

Fix Bahai conversion - #67

Merged
fitnr merged 4 commits into
masterfrom
fix/63
Sep 13, 2026
Merged

fitnr merged 4 commits into
masterfrom
fix/63

Conversation

@fitnr

@fitnr fitnr commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Small fix. Added tests and improved docstring.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

March 20 Naw-Rúz dates are still assigned to the previous Bahá’í year.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Fixes Bahá’í conversion around Ayyám-i-Há and improves related documentation and tests.

Changes:

  • Corrects the ‘Alá boundary calculation.
  • Adds conversion regression cases around Ayyám-i-Há.
  • Updates the calendar description.
File summaries
File Description
src/convertdate/bahai.py Updates conversion logic and documentation.
tests/test_bahai.py Adds Ayyám-i-Há boundary tests.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/convertdate/bahai.py Outdated
bys = gy - (bstarty + (((gregorian.to_jd(gy, 1, 1) <= jd) and x)))

year = bys + 1
year = gy - (bstarty + x) + 1
Comment thread src/convertdate/bahai.py
@fitnr
fitnr added this pull request to stack #69 September 13, 2026 19:09
@fitnr
fitnr merged commit 817a66d into master Sep 13, 2026
0 of 20 checks passed
@fitnr
fitnr deleted the fix/63 branch September 13, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants