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

Marius Dumitru Florea mariusdumitru.florea at xwiki.com
Mon Mar 21 10:35:44 UTC 2011


+0

Thanks,
Marius

On 03/17/2011 08:31 PM, Thomas Mortagne 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.
>



More information about the devs mailing list