Opened 4 years ago
Closed 4 years ago
#32735 closed Bug (fixed)
DateFormat.Y() is not zero-padded.
| Reported by: | Nick Pope | Owned by: | Nick Pope |
|---|---|---|---|
| Component: | Template system | Version: | dev |
| Severity: | Normal | Keywords: | date, year, 1000, padding |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
The Y specifier for django.utils.dateformat.DateFormat is supposed to always return a four-digit year padded with zeros. This doesn't seem to be the case for year < 1000.
Change History (3)
comment:1 by , 4 years ago
| Easy pickings: | set |
|---|---|
| Has patch: | set |
comment:2 by , 4 years ago
| Component: | Utilities → Template system |
|---|---|
| Summary: | Year is not zero padded in DateFormat for years earlier than 1000. → DateFormat.Y() is not zero-padded. |
| Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
PR