The FeedsNodeProcessor class used this instead of the default mapping:

// ...
  public function setTargetElement(FeedsSource $source, $target_node, $target_element, $value) {
    switch ($target_element) {
      case 'created':
        $target_node->created = feeds_to_unixtime($value, REQUEST_TIME);
        break;
// ...

We should do that, too.

CommentFileSizeAuthor
#1 1847028-allow-mapping-created.patch953 bytesNiklas Fiekas

Comments

Niklas Fiekas’s picture

Title: Non integer creation times are ignored, current time used instead » Allow mapping to the created property
Status: Active » Needs review
StatusFileSize
new953 bytes

One more important additional point to that mentioned in the issue summary is that comment_submit() overrides the created and changed properties with the request time. Patch attached.

donSchoe’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Do it. Using this patch for quite a while now...

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 1: 1847028-allow-mapping-created.patch, failed testing.

  • twistor committed f9be9ac on 7.x-1.x authored by Niklas Fiekas
    Issue #1847028 by Niklas Fiekas: Allow mapping to the created property
    
twistor’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.