#36543 closed Bug (fixed)
French Canadian locale formats times incorrectly
| Reported by: | Anderson, Chris | Owned by: | Mridul |
|---|---|---|---|
| Component: | Internationalization | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Claude Paroz, Simon Charette | Triage Stage: | Ready for checkin |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
The fr_CA locale uses the format string H\xa0h\xa0i as its time format and as the time portion of its datetime formats. The comments indicate this should be producing output like 13 h 40 however, because h is the flag for 12-hour time, this instead gets formatted like 13 01 40. The format strings should be updated to escape the h character.
Change History (12)
comment:1 by , 9 months ago
| Cc: | added |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Version: | 5.2 → dev |
comment:3 by , 9 months ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
I would love to work on this ticket and will make sure to provide updates on the ticket as I make progress
comment:5 by , 9 months ago
| Needs tests: | set |
|---|
comment:6 by , 9 months ago
| Needs tests: | unset |
|---|
comment:7 by , 9 months ago
| Patch needs improvement: | set |
|---|
comment:8 by , 9 months ago
| Patch needs improvement: | unset |
|---|
comment:9 by , 8 months ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:12 by , 3 weeks ago
This seems to be a regression when moving from Django 4.2 to 5.2, any chance to get a backport into 5.2?
Thank you @Chris-Anderson_JLLT, I managed to reproduce using:
Which shows: