Commits

Anonymous committed 53f4f36

aggiunto tag data

Comments (0)

Files changed (2)

cmsplugin_feed/templatetags/__init__.py

Empty file added.

cmsplugin_feed/templatetags/rss_tags.py

+from datetime import datetime
+from django import template
+import time
+
+register = template.Library()
+
+@register.filter
+def parsed_to_date(value):
+    return datetime(*time.localtime(time.mktime(value))[:6])