FIRE-32191: Fix rezdate off by a day

master
Ansariel 2022-10-04 11:46:34 +02:00
parent eb1e3f454d
commit 1dcacd598e
13 changed files with 36 additions and 2 deletions

View File

@ -1599,7 +1599,7 @@ void LLPanelProfileSecondLife::fillAgeData(const LLDate &born_on)
std::string register_date = getString("age_format");
LLSD args_age;
// <FS:Ansariel> Fix LL UI/UX design accident
std::string birth_date = LLTrans::getString("AvatarBirthDateFormat");
std::string birth_date = LLTrans::getString(!gAgent.getRegionCapability(PROFILE_PROPERTIES_CAP).empty() ? "AvatarBirthDateFormat" : "AvatarBirthDateFormat_legacy");
LLStringUtil::format(birth_date, LLSD().with("datetime", (S32)born_on.secondsSinceEpoch()));
args_age["[REG_DATE]"] = birth_date;
// </FS:Ansariel>

View File

@ -4049,6 +4049,9 @@ Krænkelsesanmeldelse
Kvinde - Wow
</string>
<string name="AvatarBirthDateFormat">
[mthnum,datetime,utc]/[day,datetime,utc]/[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[mthnum,datetime,slt]/[day,datetime,slt]/[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -5360,6 +5360,9 @@ Missbrauchsbericht
Tanzen8
</string>
<string name="AvatarBirthDateFormat">
[day,datetime,utc].[mthnum,datetime,utc].[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[day,datetime,slt].[mthnum,datetime,slt].[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -2448,7 +2448,8 @@ Abuse Report</string>
<string name="dance8">dance8</string>
<!-- birth date format shared by avatar inspector and profile panels -->
<string name="AvatarBirthDateFormat">[mthnum,datetime,slt]/[day,datetime,slt]/[year,datetime,slt]</string>
<string name="AvatarBirthDateFormat">[mthnum,datetime,utc]/[day,datetime,utc]/[year,datetime,utc]</string>
<string name="AvatarBirthDateFormat_legacy">[mthnum,datetime,slt]/[day,datetime,slt]/[year,datetime,slt]</string>
<string name="DefaultMimeType">none/none</string>
<string name="texture_load_dimensions_error">Can't load images larger than [WIDTH]*[HEIGHT]</string>

View File

@ -5039,6 +5039,9 @@ Denuncia de infracción
baile8
</string>
<string name="AvatarBirthDateFormat">
[day,datetime,utc]/[mthnum,datetime,utc]/[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[day,datetime,slt]/[mthnum,datetime,slt]/[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -5278,6 +5278,9 @@ du rapport d&apos;infraction
danse8
</string>
<string name="AvatarBirthDateFormat">
[day,datetime,utc]/[mthnum,datetime,utc]/[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[day,datetime,slt]/[mthnum,datetime,slt]/[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -5125,6 +5125,9 @@ Segnala abuso
Nuovo ambiente
</string>
<string name="AvatarBirthDateFormat">
[day,datetime,utc]/[mthnum,datetime,utc]/[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[day,datetime,slt]/[mthnum,datetime,slt]/[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -5141,6 +5141,9 @@ www.secondlife.com から最新バージョンをダウンロードしてくだ
<!-- birth date format shared by avatar inspector and profile panels -->
<string name="AvatarBirthDateFormat">
[year,datetime,utc]/[mthnum,datetime,utc]/[day,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[year,datetime,slt]/[mthnum,datetime,slt]/[day,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -5047,6 +5047,9 @@ Raport o Nadużyciu
Nowe otoczenie
</string>
<string name="AvatarBirthDateFormat">
[day,datetime,utc].[mthnum,datetime,utc].[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[day,datetime,slt].[mthnum,datetime,slt].[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -4827,6 +4827,9 @@ Denunciar abuso
dança8
</string>
<string name="AvatarBirthDateFormat">
[mthnum,datetime,utc]/[day,datetime,utc]/[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[mthnum,datetime,slt]/[day,datetime,slt]/[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -5274,6 +5274,9 @@ https://www.firestormviewer.org/support за помощь в решении эт
танец8
</string>
<string name="AvatarBirthDateFormat">
[day,datetime,utc].[mthnum,datetime,utc].[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[day,datetime,slt].[mthnum,datetime,slt].[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -5027,6 +5027,9 @@ Bu iletiyi almaya devam ederseniz, lütfen [SUPPORT_SITE] bölümüne başvurun.
dans8
</string>
<string name="AvatarBirthDateFormat">
[mthnum,datetime,utc]/[day,datetime,utc]/[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[mthnum,datetime,slt]/[day,datetime,slt]/[year,datetime,slt]
</string>
<string name="DefaultMimeType">

View File

@ -4941,6 +4941,9 @@ http://secondlife.com/support 求助解決問題。
跳舞8
</string>
<string name="AvatarBirthDateFormat">
[mthnum,datetime,utc]/[day,datetime,utc]/[year,datetime,utc]
</string>
<string name="AvatarBirthDateFormat_legacy">
[mthnum,datetime,slt]/[day,datetime,slt]/[year,datetime,slt]
</string>
<string name="DefaultMimeType">