diff --git a/app/Models/Bought.php b/app/Models/Bought.php index cba7b9d1..4856fbd0 100644 --- a/app/Models/Bought.php +++ b/app/Models/Bought.php @@ -39,7 +39,7 @@ class Bought extends Model */ public function used_days() { - return (int) ((time() - $this->datetime) / 86400); + return (int) ((strtotime(date('Y-m-d')) - $this->datetime) / 86400); } /*