Commit 5e17adedfd9de60a9f68025b3d5802c3dfb0226a
1 parent
1c1dedea99
Exists in
master
fix vacancy up
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
app/Http/Controllers/EmployerController.php
... | ... | @@ -309,8 +309,7 @@ class EmployerController extends Controller |
309 | 309 | |
310 | 310 | // Обновление даты |
311 | 311 | public function vacancy_up(Ad_employer $ad_employer) { |
312 | - $up = date('m/d/Y h:i:s', time()); | |
313 | - $ad_employer->updated_at = $up; | |
312 | + $ad_employer->updated_at = now(); | |
314 | 313 | $ad_employer->save(); |
315 | 314 | |
316 | 315 | return redirect()->route('employer.vacancy_list') |