There was an error while loading. Please reload this page.
1 parent 5853288 commit 86ccf00Copy full SHA for 86ccf00
app/Http/Resources/SurveyResource.php
@@ -22,8 +22,8 @@ public function toArray($request)
22
'slug' => $this->slug,
23
'status' => $this->status !== 'draft',
24
'description' => $this->description,
25
- 'created_at' => $this->created_at,
26
- 'updated_at' => $this->updated_at,
+ 'created_at' => (new \DateTime($this->created_at))->format('Y-m-d H:i:s'),
+ 'updated_at' => (new \DateTime($this->updated_at))->format('Y-m-d H:i:s'),
27
'expire_date' => (new \DateTime($this->expire_date))->format('Y-m-d'),
28
'questions' => SurveyQuestionResource::collection($this->questions)
29
];
0 commit comments