Active
Project:
PIRETS
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2010 at 21:18 UTC
Updated:
6 Aug 2010 at 21:18 UTC
The created date in the node table was getting overwritten (defaulted) to the changed date when a property was getting updated.
I saw this post and followed it's advice:
http://drupal.org/node/286069
The code below worked for me.
Index: pirets.batch.inc
==================================
@@ 368
),
);
+ // retain created date so that it does not get reset
+ $node->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');
$node = node_submit($node);
$node->revision = TRUE;
node_save($node);