From d5f7aae34aa88fdabba595baad4962eb05c87c4b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Dec 2019 14:18:46 +0100 Subject: [PATCH] datetime is jsonserializable, didn't know that :) --- Models/EditorDoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index ab49a52..1901ac1 100644 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -254,7 +254,7 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable 'title' => $this->title, 'plain' => $this->plain, 'content' => $this->content, - 'createdAt' => $this->createdAt->format('Y-m-d H:i:s'), + 'createdAt' => $this->createdAt, 'createdBy' => $this->createdBy, ]; }