Skip to content

Commit

Permalink
refactor: set absolute flag to true to maintain compatibility with ne…
Browse files Browse the repository at this point in the history
…wer versions of carbon
  • Loading branch information
mostafaznv committed Mar 3, 2024
1 parent e9173e1 commit 9713442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function week_ending_seconds(int $weeks = 0): int
$end = $now->clone()->addWeeks($weeks);
$end = $end->endOfWeek(config('laracache.last-day-of-week'));

return $end->endOfDay()->diffInSeconds($now);
return $end->endOfDay()->diffInSeconds($now, true);
}
}

Expand All @@ -33,6 +33,6 @@ function day_ending_seconds(int $days = 0): int
$now = now();
$end = $now->clone()->addDays($days);

return $end->endOfDay()->diffInSeconds($now);
return $end->endOfDay()->diffInSeconds($now, true);
}
}

0 comments on commit 9713442

Please sign in to comment.