mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Fixed #14037 - record current time on accessory checkin
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
2427cb787b
commit
444c41bedb
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue