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 ]);