Parcourir la source

no need to parse the date,

Oz N Tiram il y a 9 ans
Parent
commit
c1f0aa11f0
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      blogit/blogit.py

+ 1 - 2
blogit/blogit.py

@@ -214,8 +214,7 @@ class Entry(object):
 
     @property
     def publish_date(self):
-        d = self.header.get('published', datetime.date.today())
-        return d.strftime("%B %d, %Y")
+        return self.header.get('published', datetime.date.today())
 
     @property
     def published_atom(self):