I see that the "age" in profile page only show the date, not how many years the member is.
Here is how to modify this easy. (hope they can add this to the code.)
Inside the file date_time.php
at about line 402
Replace the public function "formatBirthdate".
With this.
(please rember to only replace this function, and backup file before any change is done, and if they don't add this to the project, you must do this when you update the code on next release.)
public static function formatBirthdate( $year, $month, $day )
{
$format = OW::getConfig()->getValue('base', 'date_field_format');
$result = '';
list($y, $m, $d ) = explode(':', date('Y:m:d', time()));
$age = $y - $year;
if ( $month > $m )
{
$age--;
}
else if ( ( $month == $m ) && ( $day > $d ) )
{
$age--;
}
if ( $format === 'dmy' )
{
$result = date("d M", mktime(0, 0, 0, $month, $day, $year)).' - age '.$age--.' years';
}
else
{
$result = date("d.m.Y", mktime(0, 0, 0, $month, $day, $year)).' - age '.$age--.' years';
}
return $result;
}