limitations of 'time' filter should be clarified
|Reported by:||admackin@…||Owned by:||jacob|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It would be helpful if the template filters documentation page at http://www.djangoproject.com/documentation/templates/#time could clarify the limitations of the time filter, and preferably have a reference to the more flexible date filter. The description 'same as the now tag' leads you to expect that it can accept all the same arguments as now, rather than just those that refer to a time of day, so it's a little frustrating when you find it doesn't.
Note that unlike now, time only accepts parameters in the format string that refer to the time of day, not parameters referring to the date. For date formatting use the date filter.
Change History (5)
Changed 9 years ago by SmileyChris
comment:1 Changed 9 years ago by SmileyChris
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Ready for checkin