Skip to content

Commit

Permalink
Merge pull request #52 from adibnaya/master
Browse files Browse the repository at this point in the history
Update Carboon usage
  • Loading branch information
gerardojbaez committed Sep 27, 2019
2 parents db200ab + cf4c24c commit a8897b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Laraplans/Models/PlanSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function isEnded()
{
$endsAt = Carbon::instance($this->ends_at);

return Carbon::now()->gt($endsAt) or Carbon::now()->eq($endsAt);
return Carbon::now()->gte($endsAt);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Laraplans/Models/PlanSubscriptionUsage.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ public function isExpired()
return false;
}

return Carbon::now()->gt($this->valid_until) or Carbon::now()->eq($this->valid_until);
return Carbon::now()->gte($this->valid_until);
}
}

0 comments on commit a8897b8

Please sign in to comment.