mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-14 22:08:40 +00:00
datetime is jsonserializable, didn't know that :)
This commit is contained in:
parent
4a22c0848b
commit
466dbb542a
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user