Opened 6 years ago

Closed 6 years ago

#30492 closed Bug (invalid)

"B" seen as time-related format specifier.

Reported by: Radu Nicoara Owned by: nobody
Component: Template system Version: 2.2
Severity: Normal Keywords: date, datetime, format, template
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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?

Change History (1)

comment:1 by Mariusz Felisiak, 6 years ago

Resolution: invalid
Status: newclosed
Summary: "B" seen as time-related format specifier"B" seen as time-related format specifier.

All allowed date format strings are described in documentation.

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