From 5e17adedfd9de60a9f68025b3d5802c3dfb0226a Mon Sep 17 00:00:00 2001 From: anazaryan Date: Mon, 23 Dec 2024 19:42:06 +0400 Subject: [PATCH] fix vacancy up --- app/Http/Controllers/EmployerController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 07a1a6a..babb753 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -309,8 +309,7 @@ class EmployerController extends Controller // Обновление даты public function vacancy_up(Ad_employer $ad_employer) { - $up = date('m/d/Y h:i:s', time()); - $ad_employer->updated_at = $up; + $ad_employer->updated_at = now(); $ad_employer->save(); return redirect()->route('employer.vacancy_list') -- 1.7.10.4