Skip to content
Snippets Groups Projects
Commit d481b1bd5dac authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

fix #656178: dc_date of a blog entry should consider creation_date to behave...

fix #656178: dc_date of a blog entry should consider creation_date to behave nicely with rss aggregators
parent 44a35ca8eda2
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,10 @@ ...@@ -51,6 +51,10 @@
def dc_description(self, format='text/plain'): def dc_description(self, format='text/plain'):
return self.printable_value('content', format=format) return self.printable_value('content', format=format)
def dc_date(self, date_format=None):# XXX default to ISO 8601 ?
"""return latest modification date of this entity"""
return self._cw.format_date(self.creation_date, date_format=date_format)
def parent(self): def parent(self):
return self.entry_of and self.entry_of[0] or None return self.entry_of and self.entry_of[0] or None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment