Merge branch 'patch-1' into 'malio'

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

See merge request masivro/malio-theme-for-sspanel!42
QuickEdition(No-js-Encryption)
Masivro 7 years ago
commit 23014aad36

@ -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