Fixed #14037 - record current time on accessory checkin

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-12-15 16:39:18 +00:00
parent 2427cb787b
commit 444c41bedb

View file

@ -60,9 +60,10 @@ class AccessoryCheckinController extends Controller
$this->authorize('checkin', $accessory);
$checkin_at = date('Y-m-d');
$checkin_hours = date('H:i:s');
$checkin_at = date('Y-m-d H:i:s');
if ($request->filled('checkin_at')) {
$checkin_at = $request->input('checkin_at');
$checkin_at = $request->input('checkin_at').' '.$checkin_hours;
}
// Was the accessory updated?