datetime is jsonserializable, didn't know that :)

This commit is contained in:
Dennis Eichhorn 2019-12-29 14:18:46 +01:00
parent 4a22c0848b
commit 466dbb542a
2 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ class Report implements \JsonSerializable
return [
'id' => $this->id,
'createdBy' => $this->createdBy,
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
'createdAt' => $this->createdAt,
'name' => $this->title,
'description' => $this->description,
'status' => $this->status,

View File

@ -384,7 +384,7 @@ class Template implements \JsonSerializable
return [
'id' => $this->id,
'createdBy' => $this->createdBy,
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
'createdAt' => $this->createdAt,
'name' => $this->name,
'description' => $this->description,
'status' => $this->status,