Skip to content
Snippets Groups Projects
Unverified Commit 1b48d661 authored by akwizgran's avatar akwizgran
Browse files

Use original timestamp for RSS posts, if available.

parent 46920f3b
No related branches found
No related tags found
No related merge requests found
......@@ -467,7 +467,11 @@ class FeedManagerImpl implements FeedManager, Client, EventListener,
// get other information for post
GroupId groupId = feed.getBlogId();
long time = clock.currentTimeMillis();
long time;
Date date = entry.getUpdatedDate();
if (date == null) date = entry.getPublishedDate();
if (date == null) time = clock.currentTimeMillis();
else time = date.getTime();
String body = getPostBody(b.toString());
try {
// create and store post
......
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