mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Fixed broken predicting birthday year (#668)
This commit is contained in:
parent
170363be82
commit
9b46d364b0
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ switch ($mode) {
|
|||
|
||||
if ($stats['birthday_week_list']) {
|
||||
foreach ($stats['birthday_week_list'] as $week) {
|
||||
$users[] = profile_url($week) . ' <span class="small">(' . birthday_age($week['user_birthday']) . ')</span>';
|
||||
$users[] = profile_url($week) . ' <span class="small">(' . birthday_age(date('Y-m-d', strtotime('-1 year', strtotime($week['user_birthday'])))) . ')</span>';
|
||||
}
|
||||
$html = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], implode(', ', $users));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue