Skip to content

Commit

Permalink
Assume end of day for job vacancy expiration dates.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrinkwon committed Dec 18, 2024
1 parent 27b93e4 commit 806257e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/views/aboutus/vacancy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@section('content')
<div class="col-12 shadow-sm p-3 mx-auto mb-3 article">
@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']))
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/vacancy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
loading="lazy"/>
</a>
@endif
@if(Carbon\Carbon::parse($vacancy['expires'])->isPast())
@if(Carbon\Carbon::parse($vacancy['expires'])->endOfDay()->isPast())
@include('includes.structure.jobexpired')
@endif
<div class="card-body h-100">
Expand Down

0 comments on commit 806257e

Please sign in to comment.