diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-12-02 10:50:17 -0800 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-12-02 10:50:17 -0800 |
commit | d550339958c14f0d7fd222a8531df639eac49e63 (patch) | |
tree | 2adfe920202a4304fc37446fca5f9bd368995749 /indra/newview/llchathistory.cpp | |
parent | 6e1f6f015394a3f268608061c00993939c891e54 (diff) | |
parent | 3c8f89246712d1e5391ab1bdd6bbc36a83f210d8 (diff) |
Merge from product-engine
Diffstat (limited to 'indra/newview/llchathistory.cpp')
-rw-r--r-- | indra/newview/llchathistory.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index 6e1bb961a5..5e17770314 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -267,30 +267,13 @@ protected: } private: - std::string appendTime(const LLChat& chat) - { - time_t utc_time; - utc_time = time_corrected(); - std::string timeStr ="["+ LLTrans::getString("TimeHour")+"]:[" - +LLTrans::getString("TimeMin")+"] "; - - LLSD substitution; - - substitution["datetime"] = (S32) utc_time; - LLStringUtil::format (timeStr, substitution); - - return timeStr; - } - void setTimeField(const LLChat& chat) { LLTextBox* time_box = getChild<LLTextBox>("time_box"); LLRect rect_before = time_box->getRect(); - std::string time_value = appendTime(chat); - - time_box->setValue(time_value); + time_box->setValue(chat.mTimeStr); // set necessary textbox width to fit all text time_box->reshapeToFitText(); |