mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: fix calcResetDayByYearExpiredAt
This commit is contained in:
parent
2c9f45a193
commit
7f25fb674f
@ -44,6 +44,9 @@ class UserService
|
||||
$md = date('m-d', $expiredAt);
|
||||
$nowYear = strtotime(date("Y-{$md}"));
|
||||
$nextYear = strtotime('+1 year', $nowYear);
|
||||
if ($nowYear > time()) {
|
||||
return (int)(($nowYear - time()) / 86400);
|
||||
}
|
||||
return (int)(($nextYear - time()) / 86400);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user