datetime is jsonserializable, didn't know that :)

This commit is contained in:
Dennis Eichhorn 2019-12-29 14:18:46 +01:00
parent 8da2c96fe8
commit ff2495ad5c

View File

@ -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,
];
}
}