[Django] #32735: Year is not zero padded in DateFormat for years earlier than 1000.

0 views
Skip to first unread message

Django

unread,
May 10, 2021, 10:38:46 AM5/10/21
to django-...@googlegroups.com
#32735: Year is not zero padded in DateFormat for years earlier than 1000.
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: Bug | Status: assigned
Component: Utilities | Version: dev
Severity: Normal | Keywords: date, year, 1000,
Triage Stage: | padding
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/32735>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 10, 2021, 10:41:07 AM5/10/21
to django-...@googlegroups.com
#32735: Year is not zero padded in DateFormat for years earlier than 1000.
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: Bug | Status: assigned
Component: Utilities | Version: dev
Severity: Normal | Resolution:

Keywords: date, year, 1000, | Triage Stage:
padding | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nick Pope):

* has_patch: 0 => 1
* easy: 0 => 1


Comment:

[https://github.com/django/django/pull/14373 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/32735#comment:1>

Django

unread,
May 10, 2021, 3:09:36 PM5/10/21
to django-...@googlegroups.com
#32735: DateFormat.Y() is not zero-padded.

-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: Bug | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: date, year, 1000, | Triage Stage: Accepted
padding |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* component: Utilities => Template system
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/32735#comment:2>

Django

unread,
May 12, 2021, 2:41:48 AM5/12/21
to django-...@googlegroups.com
#32735: DateFormat.Y() is not zero-padded.
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: Bug | Status: closed

Component: Template system | Version: dev
Severity: Normal | Resolution: fixed

Keywords: date, year, 1000, | Triage Stage: Accepted
padding |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"34363a391bad5a007f2ab35a6d8c4ece4c3234f6" 34363a39]:
{{{
#!CommitTicketReference repository=""
revision="34363a391bad5a007f2ab35a6d8c4ece4c3234f6"
Fixed #32735 -- Made DateFormat.Y() return a zero-padded year.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32735#comment:3>

Reply all
Reply to author
Forward
0 new messages