Skip to content

fix: correct Hindi date formats#964

Open
parinporecha wants to merge 1 commit intopython-pendulum:masterfrom
parinporecha:fix/hindi-date-formats
Open

fix: correct Hindi date formats#964
parinporecha wants to merge 1 commit intopython-pendulum:masterfrom
parinporecha:fix/hindi-date-formats

Conversation

@parinporecha
Copy link
Copy Markdown

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

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.

1 participant