#27981: date filter localization problem
-------------------------------------+-------------------------------------
               Reporter:  Erdem      |          Owner:  nobody
  Yılmaz                             |
                   Type:  Bug        |         Status:  new
              Component:  Template   |        Version:  1.10
  system                             |       Keywords:  template date
               Severity:  Normal     |  filter
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 In the
 [https://docs.djangoproject.com/en/1.10/ref/templates/builtins/#date
 django documentation] it says about date filter

 When used without a format string:

 {{{
 {{ value|date }}
 }}}

 ...the formatting string defined in the DATE_FORMAT setting will be used,
 without applying any localization.

 my DATE_FORMAT in the settings.py is as follows:
 DATE_FORMAT = 'd-F-Y'

 But my DATE_FORMAT setting is not used, the locale-dictated format
 (DATE_FORMAT = 'd F Y') always overrides my custom format which contains
 dashes

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.61f2b2c3e8f82677a19b8b55b5fc506d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to