How to update changed date for a node I am migrating content from Drupal 7 to Drupal 8. Migration works fine except the changed date for node get changed to the current time. I want to set the timestamp to the Drupal 7 timestamp. I have tried out the following but it is not working.
        $changed_date = $node-&gt;getChangedTime();
        $node-&gt;set($source['parent_field_name'], $paragraph_target);
        $node-&gt;changed-&gt;value = $changed_date;
        // print_r($changed_date);die;
        $node-&gt;save();
Not personally tested, but according this issue is a problem for already existing entities, while it should be resolved for new ones.
Also, there's a module that seems to address this issue.
So, I'd say:

try to create the node only in one step, to see if that preserve the original timestamp
if that fails, try either the patch or the module