What is the proper way to address and modify a node's authored on date? I created a slew of new nodes via a CSV import via the Feeds module. These nodes now have the date of 2013-07-11 as the authored on date as that's when I did the import. But each node refers to a previous date and I need the authored on date to reflect that.
I have a content type I've created that has a separate Date field where I choose the date. I'd like to eliminate that and just use the authored on date instead.
I'm trying to use VBO to run a custom PHP snippet to make this change but the examples I've found so far do not work.
$object->created = $object->field_date['value']; node_save($object);
This snippet when run through VBO returns errors:
Notice: Undefined variable: object in eval() (line 1 of /home/chriscor/public_html /hi_tracker/sites/all/modules/contrib/views_bulk_operations/actions/script.action.inc(20) : eval()'d code).
Notice: Trying to get property of non-object in eval() (line 1 of /home/chriscor/public_html/hi_tracker/sites/all/modules/contrib/views_bulk_operations/actions/script.action.inc(20) : eval()'d code).
EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7693 of /home/chriscor/public_html/hi_tracker/includes/common.inc).
Any idea what I'm missing?