[Django] #30492: "B" seen as time-related format specifier

6 views
Skip to first unread message

Django

unread,
May 20, 2019, 7:54:10 AM5/20/19
to django-...@googlegroups.com
#30492: "B" seen as time-related format specifier
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
RaduNicoara |
Type: Bug | Status: new
Component: Template | Version: 2.2
system | Keywords: date, datetime,
Severity: Normal | format, template
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I have currently set

DATE_FORMAT = "d B Y"

in my project settings. If I try to run it like this, I get the following
TypeError:

The format for date objects may not contain time-related format specifiers
(found 'B')

However, it works with 'b'

Any clue why this is happening?

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

Django

unread,
May 20, 2019, 7:59:50 AM5/20/19
to django-...@googlegroups.com
#30492: "B" seen as time-related format specifier.
-------------------------------------+-------------------------------------
Reporter: Radu Nicoara | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: 2.2
Severity: Normal | Resolution: invalid
Keywords: date, datetime, | Triage Stage:
format, template | Unreviewed
Has patch: 0 | Needs documentation: 0

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

* status: new => closed
* resolution: => invalid


Comment:

All allowed date format strings are described in
[https://docs.djangoproject.com/en/stable/ref/templates/builtins/#std
:templatefilter-date documentation].

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

Reply all
Reply to author
Forward
0 new messages