This works pretty awesome! Thanks.

Is it possible to have the node creation day to be the rsspubdate?

thanks
/andreas

Comments

m3avrck’s picture

Right now the node date is:

$values['created'] = $item->get_date();

http://simplepie.org/docs/reference/item/get_date/

I don't any other possible date that would work. Care to expand?

micheleannj’s picture

Component: Miscellaneous » Code

I want to second the request. All feed items are showing up with the node publish date.

Let me know if there's any way I can help (ie test a patch or try to give more details).

Thanks

micheleannj’s picture

Title: Node Creation Day to be pubdate » Node Creation Day to be pubdate - fix

To fix this, change $values['created'] to $values['date'] in simplefeed_item.module.

The date isn't in the right format, but Drupal doesn't seem to mind. To convert it, add the following

$fdate = strftime("%Y-%m-%d %H:%M:%S", strtotime($item->get_date()));
$values['date'] = $fdate;

My first module fix ;-)
HTH
maj

m3avrck’s picture

Status: Active » Fixed

Super thanks!

I have fixed this using Drupal's internal date functions.

Anonymous’s picture

Status: Fixed » Closed (fixed)