Skip to content

Commit

Permalink
Correct trial
Browse files Browse the repository at this point in the history
today method causes wrong behaviour. If a trial mode was changed to active subscription, user can't change subscription via swap method till the end of day.
  • Loading branch information
ishukshin authored Jul 11, 2017
1 parent 6801f8c commit ec0159a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function cancelled()
public function onTrial()
{
if (! is_null($this->trial_ends_at)) {
return Carbon::today()->lt($this->trial_ends_at);
return Carbon::now()->lt($this->trial_ends_at);
} else {
return false;
}
Expand Down

0 comments on commit ec0159a

Please sign in to comment.