From ff2495ad5caf31b3d5796e31f36821d11b2a8ab4 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/Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/Module.php b/Models/Module.php index e8dc34e..2cb07c9 100644 --- a/Models/Module.php +++ b/Models/Module.php @@ -219,7 +219,7 @@ class Module 'id' => $this->id, 'name' => $this->name, 'description' => $this->description, - 'createdAt' => $this->createdAt->format('Y-m-d H:i:s'), + 'createdAt' => $this->createdAt, ]; } }