diff --git a/library/includes/functions.php b/library/includes/functions.php
index 17de5ece5..5914932c4 100644
--- a/library/includes/functions.php
+++ b/library/includes/functions.php
@@ -2092,3 +2092,21 @@ function clean_tor_dirname($dirname)
{
return str_replace(array('[', ']', '<', '>', "'"), array('[', ']', '<', '>', '''), $dirname);
}
+
+/**
+ * Get birthday icon
+ *
+ * @param $user_birthday
+ * @param $user_id
+ * @return string
+ */
+function user_birthday_icon($user_birthday, $user_id): string
+{
+ global $bb_cfg, $images, $lang;
+
+ $current_date = bb_date(TIMENOW, 'md', false);
+ $user_birthday = ($user_id != GUEST_UID && !empty($user_birthday) && $user_birthday != '1900-01-01')
+ ? date('md', strtotime($user_birthday)) : false;
+
+ return ($bb_cfg['birthday_enabled'] && $current_date == $user_birthday) ? '' : '';
+}
diff --git a/library/includes/ucp/viewprofile.php b/library/includes/ucp/viewprofile.php
index e711f977b..deb529e62 100644
--- a/library/includes/ucp/viewprofile.php
+++ b/library/includes/ucp/viewprofile.php
@@ -99,6 +99,7 @@ $template->assign_vars(array(
'USER_POINTS' => $profiledata['user_points'],
'GENDER' => ($bb_cfg['gender']) ? $lang['GENDER_SELECT'][$profiledata['user_gender']] : '',
'BIRTHDAY' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? $profiledata['user_birthday'] : '',
+ 'BIRTHDAY_ICON' => user_birthday_icon($profiledata['user_birthday'], $profiledata['user_id']),
'AGE' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? birthday_age($profiledata['user_birthday']) : '',
'L_VIEWING_PROFILE' => sprintf($lang['VIEWING_USER_PROFILE'], $profiledata['username']),
diff --git a/styles/templates/default/usercp_viewprofile.tpl b/styles/templates/default/usercp_viewprofile.tpl
index 56056f379..e5ee8dd84 100644
--- a/styles/templates/default/usercp_viewprofile.tpl
+++ b/styles/templates/default/usercp_viewprofile.tpl
@@ -221,6 +221,7 @@ ajax.callback.gen_passkey = function(data){
{RANK_IMAGE}