Skip to content

Commit

Permalink
Merge pull request #25 from mostafaznv/dev
Browse files Browse the repository at this point in the history
refactor: set absolute flag to true to maintain compatibility with ne…
  • Loading branch information
mostafaznv authored Mar 3, 2024
2 parents 44c7503 + 9713442 commit 48d711d
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 48d711d

Please sign in to comment.