From d8bb69533ced49b3eb7d420159d458102e88d7c9 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 26 Jan 2021 23:22:59 +0300 Subject: [PATCH] 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. --- app/Http/Controllers/Api/AssetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 4c4e2a8a92..e9aeaed97a 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -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'));