Opened 4 years ago
Closed 4 years ago
#32735 closed Bug (fixed)
DateFormat.Y() is not zero-padded.
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