To eliminate 12/24hours ambiguity fix. This fix prevents loss of time accuracy. (#8887)

Its a tiny fix to eliminate 12/24hours ambiguity. Fix prevents time accuracy loss in field "last_audit_date" for assets.
This commit is contained in:
Evgeny 2021-01-26 23:22:59 +03:00 committed by GitHub
parent 01d3606c42
commit d8bb69533c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -812,7 +812,7 @@ class AssetsController extends Controller
$asset->location_id = $request->input('location_id');
}
$asset->last_audit_date = date('Y-m-d h:i:s');
$asset->last_audit_date = date('Y-m-d H:i:s');
if ($asset->save()) {
$log = $asset->logAudit(request('note'),request('location_id'));