Skip to content

Commit 47c4c53

Browse files
authored
Merge pull request #8 from Jade-GG/patch-1
Round diff in days
2 parents 0ff6d22 + 8a750d9 commit 47c4c53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CalendarStore.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public function getPresentableDate(Carbon $carbon): string
5252
}
5353

5454
if ($carbon->diffInDays(now(), true) < 8) {
55-
return "In {$carbon->diffInDays(now(), true)} days";
55+
$days = round($carbon->diffInDays(now(), true))
56+
return "In {$days} days";
5657
}
5758

5859
if ($carbon->isNextWeek()) {

0 commit comments

Comments
 (0)