1 2 3 4 5 6 7 8 9 | from django.template import Library
import datetime
register = Library()
def feedparsed(value):
return datetime.datetime(*value[:6])
register.filter(feedparsed)
|
More like this
- Parsed RSS into template var by bram 3 years, 7 months ago
- Media RSS generation for Photologue by ltvolks 2 years, 6 months ago
- EasyFeed class by limodou 4 years, 11 months ago
- HTTP (basic) auth enabled (new-style) syndication framework feed class by hupf 1 year, 1 month ago
- Smart i18n date diff (twitter like) by Batiste 2 years, 10 months ago
Comments
Brilliant in its simplicity, and exactly what I came looking for. Works perfectly. Thanks!
#