Skip to content

Commit

Permalink
Fix Carbon diff calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
NFarrington committed Jun 9, 2018
1 parent 1416764 commit 833bc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AppServiceProvider extends ServiceProvider
public function boot()
{
Carbon::macro('diffForHumansAt', function () {
$diffDays = $this->diffInDays();
$diffDays = $this->diffInDays(self::now()->endOfDay());
switch ($diffDays) {
case 0:
$time = 'Today';
Expand Down

0 comments on commit 833bc45

Please sign in to comment.