Skip to content

test(mx/curp): compare the birth date in local time - #261

Merged
koblas merged 1 commit into
koblas:mainfrom
saimskywalker:mx-curp-test-timezone
Nov 12, 2026
Merged

koblas merged 1 commit into
koblas:mainfrom
saimskywalker:mx-curp-test-timezone

Conversation

@saimskywalker

Copy link
Copy Markdown
Contributor

The getBirthDate test turns the date into UTC with toISOString, so it fails when the tests run east of UTC (with TZ=Asia/Kolkata it gets 1931-08-19). It now compares with a local date, which is what getBirthDate returns.

@koblas
koblas merged commit 42b5f99 into koblas:main Nov 12, 2026
7 checks passed
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