From c6726015f78a5749a39942ae7fad3873419be21b Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 30 Apr 2021 14:52:08 -0700 Subject: [PATCH 1/2] Added missing use statement Signed-off-by: snipe --- app/Http/Controllers/LocationsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/LocationsController.php b/app/Http/Controllers/LocationsController.php index 4f07cb05d5..7a112656d4 100755 --- a/app/Http/Controllers/LocationsController.php +++ b/app/Http/Controllers/LocationsController.php @@ -6,6 +6,7 @@ use App\Http\Requests\ImageUploadRequest; use App\Models\Location; use App\Models\User; use Illuminate\Support\Facades\Auth; +use App\Models\Asset; use Illuminate\Support\Facades\Storage; /** From cee5eea12120a9da9828d63e130ab6b666539244 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 30 Apr 2021 15:37:39 -0700 Subject: [PATCH 2/2] Use 24-hour date format for audit Signed-off-by: snipe --- app/Http/Controllers/Assets/AssetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index 12c5f06949..8fed678d40 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -813,7 +813,7 @@ class AssetsController extends Controller $asset->unsetEventDispatcher(); $asset->next_audit_date = $request->input('next_audit_date'); - $asset->last_audit_date = date('Y-m-d h:i:s'); + $asset->last_audit_date = date('Y-m-d H:i:s'); // Check to see if they checked the box to update the physical location, // not just note it in the audit notes