Ban datetime format

This commit is contained in:
Miguel Nogueira 2020-09-07 23:44:14 +01:00
parent 98e557a840
commit 178bc31a6e

View File

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