summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatervoiceeffect.cpp
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-05-23 19:44:30 +0100
committerAimee Linden <aimee@lindenlab.com>2010-05-23 19:44:30 +0100
commit08e610adfa8124fa7b990f952ad3053b955b62d3 (patch)
treeb8a6b110edc190eadcebfe35de82954d3850fff4 /indra/newview/llfloatervoiceeffect.cpp
parent1cb14cd52bdd7b795f081043fb4444e0a196f82b (diff)
EXT-7335 WIP Parse Vivox voice font expiry timestamps into ISO 8601 standard dates.
Diffstat (limited to 'indra/newview/llfloatervoiceeffect.cpp')
-rw-r--r--indra/newview/llfloatervoiceeffect.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llfloatervoiceeffect.cpp b/indra/newview/llfloatervoiceeffect.cpp
index 49dd6fa4d9..38c419ab24 100644
--- a/indra/newview/llfloatervoiceeffect.cpp
+++ b/indra/newview/llfloatervoiceeffect.cpp
@@ -161,7 +161,7 @@ void LLFloaterVoiceEffect::refreshEffectList()
effect_name += " " + getString("active_voice_effect");
}
- std::string expiry_date = effect_properties["expiry_date"].asString();
+ LLDate expiry_date = effect_properties["expiry_date"].asDate();
bool is_template_only = effect_properties["template_only"].asBoolean();
bool is_new = effect_properties["is_new"].asBoolean();
@@ -184,7 +184,13 @@ void LLFloaterVoiceEffect::refreshEffectList()
element["columns"][1]["font"]["style"] = font_style;
element["columns"][2]["column"] = "expires";
- element["columns"][2]["value"] = !is_template_only ? expiry_date : "";
+ if (!is_template_only)
+ {
+ element["columns"][2]["value"] = expiry_date;
+ }
+ else {
+ element["columns"][2]["value"] = "";
+ }
element["columns"][2]["font"]["name"] = "SANSSERIF";
element["columns"][2]["font"]["style"] = font_style;