#6449: datetime filter to access the settings/locales datetime format
-------------------------------------------+--------------------------------
          Reporter:  Harm Geerts           |         Owner:  garcia_marc
            Status:  closed                |     Milestone:             
         Component:  Internationalization  |       Version:  SVN        
        Resolution:  fixed                 |      Keywords:  i18n-fixed 
             Stage:  Fixed on a branch     |     Has_patch:  1          
        Needs_docs:  1                     |   Needs_tests:  0          
Needs_better_patch:  1                     |  
-------------------------------------------+--------------------------------
Comment (by bjourne):

 Replying to [comment:7 garcia_marc]:
 > I think that this ticket report is invalid. To display a date/datetime
 in the current locale, just use:
 >
 > {{ my_date|date:_("DATE_FORMAT") }} or {{
 my_date|date:_("DATETIME_FORMAT") }}

 Maybe this trick could be added to the documentation? It solves the
 problem very elegantly, but the solution is not very obvious (not to me
 anyway).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6449#comment:12>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to