Skip to content

Commit

Permalink
Merge pull request #736 from FitzwilliamMuseum/hotfix/14776-vacancy-e…
Browse files Browse the repository at this point in the history
…xpiration

Assume end of day for job vacancy expiration dates.
  • Loading branch information
gtrinkwon authored Dec 19, 2024
2 parents 27b93e4 + 806257e commit 52e5d6b
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 52e5d6b

Please sign in to comment.