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

Jerome Velociter jerome at xwiki.com
Thu Mar 17 18:33:36 UTC 2011


+1

On Thu, Mar 17, 2011 at 7:31 PM, Thomas Mortagne
<thomas.mortagne at xwiki.com> wrote:
> 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
> _______________________________________________
> devs mailing list
> devs at xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>



More information about the devs mailing list