Skip to content

fix: correct Hindi date formats - #964

Merged
Secrus merged 1 commit into
python-pendulum:masterfrom
parinporecha:fix/hindi-date-formats
Sep 19, 2026
Merged

Secrus merged 1 commit into
python-pendulum:masterfrom
parinporecha:fix/hindi-date-formats

Conversation

@parinporecha

Copy link
Copy Markdown
Contributor

Summary

  • correct Hindi custom date formats to use locale-appropriate day-first ordering
  • remove the incorrect month-first/comma-separated Hindi L/LL/LLL/LLLL formats
  • add regression coverage for Hindi date formatting tokens

Why

Hindi locale data is day-first in CLDR/Babel, but Pendulum's custom Hindi date formats were using US-style month-first ordering. This makes Hindi inconsistent with the locale data and with runtime expectations.

Test Plan

  • PYTHONPATH=src python3 -m pytest tests/localization/test_hi.py -q
  • PYTHONPATH=src python3 -m pytest tests/localization -q
  • PYTHONPATH=src python3 -m pytest -q

@Secrus Secrus added the locale label Sep 19, 2026
@Secrus Secrus closed this Sep 19, 2026
@Secrus Secrus reopened this Sep 19, 2026
@Secrus
Secrus enabled auto-merge (squash) September 19, 2026 21:02
@codspeed

codspeed Bot commented Sep 19, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 1 untouched benchmark


Comparing parinporecha:fix/hindi-date-formats (cca18c3) with master (bd89085)

Open in CodSpeed

@Secrus
Secrus merged commit 2fbd687 into python-pendulum:master Sep 19, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants