It is good to set the application's timezone.
This commit is contained in:
parent
640468acbe
commit
bad9d0ec12
|
@ -54,7 +54,7 @@ class Coupon extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_null($this->expires_at)) {
|
if (!is_null($this->expires_at)) {
|
||||||
if ($this->expires_at <= Carbon::now()->timestamp) {
|
if ($this->expires_at <= Carbon::now(config('app.timezone'))->timestamp) {
|
||||||
return __('EXPIRED');
|
return __('EXPIRED');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue