From 806257e36ab525a474f5e9d0228228755ed7d2f2 Mon Sep 17 00:00:00 2001 From: Gareth Trinkwon Date: Wed, 18 Dec 2024 18:11:38 +0000 Subject: [PATCH] Assume end of day for job vacancy expiration dates. --- resources/views/aboutus/vacancy.blade.php | 4 ++-- resources/views/components/vacancy.blade.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/aboutus/vacancy.blade.php b/resources/views/aboutus/vacancy.blade.php index 19d138e8..d9685b3a 100644 --- a/resources/views/aboutus/vacancy.blade.php +++ b/resources/views/aboutus/vacancy.blade.php @@ -14,7 +14,7 @@ @section('content')
- @if(Carbon\Carbon::parse($vacancy['expires'])->isPast()) + @if(Carbon\Carbon::parse($vacancy['expires'])->endOfDay()->isPast()) @include('includes.structure.jobexpired') @endif @if(isset($vacancy['salary_range'])) @@ -30,7 +30,7 @@ @endisset @markdown($vacancy['job_description']) - @if(!Carbon\Carbon::parse($vacancy['expires'])->isPast()) + @if(!Carbon\Carbon::parse($vacancy['expires'])->endOfDay()->isPast()) @include('includes.structure.jobLink') @endif diff --git a/resources/views/components/vacancy.blade.php b/resources/views/components/vacancy.blade.php index f23a8bc6..b345f9a2 100644 --- a/resources/views/components/vacancy.blade.php +++ b/resources/views/components/vacancy.blade.php @@ -10,7 +10,7 @@ loading="lazy"/> @endif - @if(Carbon\Carbon::parse($vacancy['expires'])->isPast()) + @if(Carbon\Carbon::parse($vacancy['expires'])->endOfDay()->isPast()) @include('includes.structure.jobexpired') @endif