Преглед на файлове

It is good to set the application's timezone.

Ferks-FK преди 2 години
родител
ревизия
bad9d0ec12
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Models/Coupon.php

+ 1 - 1
app/Models/Coupon.php

@@ -54,7 +54,7 @@ class Coupon extends Model
         }
 
         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');
             }
         }