From 178bc31a6ebbefaeb96dd50d410280862baac378 Mon Sep 17 00:00:00 2001 From: Miguel N Date: Mon, 7 Sep 2020 23:44:14 +0100 Subject: [PATCH] Ban datetime format --- app/Http/Controllers/BanController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/BanController.php b/app/Http/Controllers/BanController.php index 55a0204..82ffb42 100644 --- a/app/Http/Controllers/BanController.php +++ b/app/Http/Controllers/BanController.php @@ -56,7 +56,7 @@ class BanController extends Controller $ban = Ban::create([ 'userID' => $user->id, 'reason' => $reason, - 'bannedUntil' => $expiryDate, + 'bannedUntil' => $expiryDate->format('Y-m-d H:i:s'), 'userAgent' => "Unknown", 'authorUserID' => Auth::user()->id ]);