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 Nick Pope, 4 years ago

Easy pickings: set
Has patch: set

comment:2 by Mariusz Felisiak, 4 years ago

Component: UtilitiesTemplate system
Summary: Year is not zero padded in DateFormat for years earlier than 1000.DateFormat.Y() is not zero-padded.
Triage Stage: UnreviewedAccepted

comment:3 by Mariusz Felisiak <felisiak.mariusz@…>, 4 years ago

Resolution: fixed
Status: assignedclosed

In 34363a39:

Fixed #32735 -- Made DateFormat.Y() return a zero-padded year.

Note: See TracTickets for help on using tickets.
Back to Top