bug #177 - birthday month on profile incorrect if October or later and no year

This commit is contained in:
Friendika 2011-10-10 01:03:34 -07:00
parent 077726a193
commit 3174847de8
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ $short_bd_format = t('j F');
$o .= '<div id="advanced-profile-dob" class="advanced-profile-content">'
. ((intval($a->profile['dob']))
? day_translate(datetime_convert('UTC','UTC',$a->profile['dob'] . ' 00:00 +00:00',$year_bd_format))
: day_translate(datetime_convert('UTC','UTC','2001-' . substr($a->profile['dob'],6) . ' 00:00 +00:00',$short_bd_format)))
: day_translate(datetime_convert('UTC','UTC','2001-' . substr($a->profile['dob'],5) . ' 00:00 +00:00',$short_bd_format)))
. "</div>\r\n</div>";
$o .= '<div id="advanced-profile-dob-end"></div>';