Ban datetime format

This commit is contained in:
Miguel Nogueira 2020-09-07 23:44:14 +01:00
parent 98e557a840
commit 178bc31a6e
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class BanController extends Controller
$ban = Ban::create([ $ban = Ban::create([
'userID' => $user->id, 'userID' => $user->id,
'reason' => $reason, 'reason' => $reason,
'bannedUntil' => $expiryDate, 'bannedUntil' => $expiryDate->format('Y-m-d H:i:s'),
'userAgent' => "Unknown", 'userAgent' => "Unknown",
'authorUserID' => Auth::user()->id 'authorUserID' => Auth::user()->id
]); ]);