diff --git a/Controller.php b/Controller.php index 4249662..f9ff2ac 100644 --- a/Controller.php +++ b/Controller.php @@ -300,7 +300,6 @@ class Controller extends ModuleAbstract implements WebInterface $newsArticle = new NewsArticle(); $newsArticle->setCreatedBy($request->getHeader()->getAccount()); - $newsArticle->setCreatedAt(new \DateTime('now')); $newsArticle->setPublish(new \DateTime((string) ($request->getData('publish') ?? 'now'))); $newsArticle->setTitle((string) ($request->getData('title') ?? '')); $newsArticle->setPlain((string) ($request->getData('plain') ?? '')); diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index 791d35b..5ddaa03 100644 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -279,18 +279,6 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable $this->createdBy = $id; } - /** - * @param \DateTime $createdAt - * - * @return void - * - * @since 1.0.0 - */ - public function setCreatedAt(\DateTime $createdAt) - { - $this->createdAt = $createdAt; - } - /** * @return string *