]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Fix birthday display and setting
[friendica.git] / src / Model / Profile.php
index 4546229f7cee562dad65c827d78db851ea76f532..b993562cecc76ab140266ae3e48458f49a114336 100644 (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']) {