diff --git a/Controller/Adminhtml/Post/Save.php b/Controller/Adminhtml/Post/Save.php index a4ec372..4b7ef9f 100644 --- a/Controller/Adminhtml/Post/Save.php +++ b/Controller/Adminhtml/Post/Save.php @@ -58,6 +58,9 @@ public function execute() if (!$data['is_short_content']) { $model->setShortContent(''); } + if (!$data[PostInterface::CREATED_AT]) { + $model->setCreatedAt(date('Y-m-d H:i:s')); + } try { if ($this->getRequest()->getParam('isAjax')) {