diff --git a/core/modules/comment/lib/Drupal/comment/Entity/Comment.php b/core/modules/comment/lib/Drupal/comment/Entity/Comment.php index c2b458a..e9d54a3 100644 --- a/core/modules/comment/lib/Drupal/comment/Entity/Comment.php +++ b/core/modules/comment/lib/Drupal/comment/Entity/Comment.php @@ -137,7 +137,7 @@ public function preSave(EntityStorageControllerInterface $storage_controller) { $this->setCreatedTime(REQUEST_TIME); } if (is_null($this->getChangedTime())) { - $this->changed->value = $this->getCreatedTime(); + $this->set('changed', $this->getCreatedTime()); } // We test the value with '===' because we need to modify anonymous // users as well.