Bug tracker
Birthday Problems? (fix completed in vcs)
Comments / History
- Code: Select all
$age = (int) (date('Y', $time) - $bday_year - ((((date('n', $time) - $bday_month) < 0) || ((date('j', $time) - $bday_day) < 0)) ? 1 : 0));
with
- Code: Select all
$age = (int) date('Y', $time) - $bday_year - ((date('n', $time) <= $bday_month && date('j', $time) < $bday_day) ? 1 : 0);
in memberlist.php. I checked every constellations I could think of and the age now displays correctly for me. You may try, if this fixes your issue as well.
Although my case is diefferent than yours
Which case was this?
Before I got here, I looked at the same line of code Schumi posted and it was a bunch of mumbo jumbo to me, but after I replaced it with his new line, it correctly displays 17.