Skip to content

Commit

Permalink
Fixed carbon upgrade bug
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Mar 27, 2024
1 parent 8496da6 commit b68e6df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/V1/TimeEntryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function index(Organization $organization, TimeEntryIndexRequest $request
$lastDate = null;
/** @var TimeEntry $timeEntry */
foreach ($timeEntries as $timeEntry) {
if ($lastDate === null || $lastDate->diffInDays($timeEntry->start->startOfDay()) > 0) {
if ($lastDate === null || abs($lastDate->diffInDays($timeEntry->start->startOfDay())) > 0) {
$lastDate = $timeEntry->start->startOfDay();
}
}
Expand Down

0 comments on commit b68e6df

Please sign in to comment.