[xwiki-devs] [VOTE] Change default published date for XWikiDocument#getDate() instead of instead of #getCreationDate()

Thomas Mortagne thomas.mortagne at xwiki.com
Thu Mar 17 18:31:02 UTC 2011


Hi devs,

I was looking at http://jira.xwiki.org/jira/browse/XWIKI-5336 and
basically I'm like Jens, I don't understand why we are using creation
date in feed plugin.

So I'm proposing to change it for date (last version date).

FYI I'm planning to change

    protected Date getDefaultPublishedDate(Document doc, Map<String,
Object> params, XWikiContext context)
    {
        return doc.getCreationDate();
    }

to

    protected Date getDefaultPublishedDate(Document doc, Map<String,
Object> params, XWikiContext context)
    {
        return doc.getDate();
    }

in com.xpn.xwiki.plugin.feed.SyndEntryDocumentSource

WDYT ?

Here is my +1.

-- 
Thomas Mortagne



More information about the devs mailing list