Fix birthday display and setting

- Add new translation string
This commit is contained in:
Hypolite Petovan 2020-01-15 22:35:30 -05:00
parent 1c50bc58e4
commit db518e7ef2
3 changed files with 18 additions and 32 deletions

View file

@ -774,9 +774,9 @@ class Profile
if (!empty($a->profile['dob'])
&& $a->profile['dob'] > DBA::NULL_DATE
&& $age = Temporal::getAgeByTimezone($a->profile['dob'], $a->profile['timezone'], '')
&& $age = Temporal::getAgeByTimezone($a->profile['dob'], $a->profile['timezone'])
) {
$profile['age'] = [DI::l10n()->t('Age:'), $age];
$profile['age'] = [DI::l10n()->t('Age: ') , DI::l10n()->tt('%d year old', '%d years old', $age)];
}
if ($a->profile['marital']) {