- fix to holidays

This commit is contained in:
EwelinaLasowy 2022-04-29 11:28:06 +02:00
parent ab9eedaf1d
commit 98d6be115c

View File

@ -16,7 +16,7 @@ class HolidayResource extends JsonResource
"id" => $this->id,
"name" => $this->name,
"date" => $this->date->toDateString(),
"isPast" => $this->date->isPast(),
"isPast" => $this->date->endOfDay()->isPast(),
"displayDate" => $this->date->toDisplayString(),
"dayOfWeek" => $this->date->dayName,
];