SL-18047 Birthdate one day early

master
Andrey Kleshchev 2022-10-03 23:47:19 +03:00
parent 5404708de0
commit f7cc8e4c8c
2 changed files with 7 additions and 1 deletions

View File

@ -1280,6 +1280,8 @@ void LLPanelProfileSecondLife::fillRightsData()
void LLPanelProfileSecondLife::fillAgeData(const LLDate &born_on)
{
// Date from server comes already converted to stl timezone,
// so display it as an UTC + 0
std::string name_and_date = getString("date_format");
LLSD args_name;
args_name["datetime"] = (S32)born_on.secondsSinceEpoch();

View File

@ -9,9 +9,13 @@
follows="all"
layout="topleft"
>
<!--
Date from server comes already converted to stl timezone,
so display it as an UTC+0
-->
<string
name="date_format"
value="SL birthdate: [mth,datetime,slt] [day,datetime,slt], [year,datetime,slt]" />
value="SL birthdate: [mth,datetime,utc] [day,datetime,utc], [year,datetime,utc]" />
<string
name="age_format"
value="[AGE]" />