修复重置周期最后一天的下次重置显示问题

QuickEdition(No-js-Encryption)
lithromantic 7 years ago
parent 69fedbcbf3
commit 196a8bc151

@ -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);
}
/*

Loading…
Cancel
Save