From 6354a053e366e1b6228c45a5dc9f92b262862dbe Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Fri, 3 Jun 2022 01:41:25 +0300 Subject: SL-15312 Show user's sl birthday --- indra/newview/llpanelprofile.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'indra/newview/llpanelprofile.cpp') diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index f608712133..cb10dd75fb 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -1238,12 +1238,20 @@ void LLPanelProfileSecondLife::fillRightsData() void LLPanelProfileSecondLife::fillNameAgeData(const LLAvatarName &av_name, const LLDate &born_on) { - LLStringUtil::format_map_t args; - args["[AGE]"] = LLDateUtil::ageFromDate(born_on, LLDate::now()); - args["[NAME]"] = av_name.getAccountName(); - std::string register_date = getString("NameAgeFormat", args); - getChild("user_name_age")->setValue(register_date); getChild("display_name")->setValue(av_name.getDisplayName()); + + std::string name_and_date = getString("name_date_format"); + LLSD args_name; + args_name["datetime"] = (S32)born_on.secondsSinceEpoch(); + args_name["[NAME]"] = av_name.getAccountName(); + LLStringUtil::format(name_and_date, args_name); + getChild("user_name_date")->setValue(name_and_date); + + std::string register_date = getString("age_format"); + LLSD args_age; + args_age["[AGE]"] = LLDateUtil::ageFromDate(born_on, LLDate::now()); + LLStringUtil::format(register_date, args_age); + getChild("user_age")->setValue(register_date); } void LLPanelProfileSecondLife::onImageLoaded(BOOL success, LLViewerFetchedTexture *imagep) -- cgit v1.2.3