From a2b0731dd0b12b61a49bf6b1a858b06bcd08254f Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Sat, 24 Aug 2013 21:57:42 -0400 Subject: [PATCH] Satisfy Issue 613: TIme-stamp when viewing old notices in groups To activate set LiruGroupNoticeTimes to true via debug settings Depending on your date and time settings, you may need to resize the date column of the scroll list and hit refresh to see the times, alternatively, the tooltips will display the whole time always. --- indra/newview/app_settings/settings.xml | 13 ++++++++++++- indra/newview/llpanelgroupnotices.cpp | 5 ++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index b2f233f70..d268b43e6 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -674,10 +674,21 @@ Value 0 + LiruGroupNoticeTimes + + Comment + Append timestamp to date in the lists of past group notices + Persist + 1 + Type + Boolean + Value + 0 + LiruItalicizeActions Comment - When enabled, /me chat will be italicized. + When enabled, /me chat will be italicized. Persist 1 Type diff --git a/indra/newview/llpanelgroupnotices.cpp b/indra/newview/llpanelgroupnotices.cpp index 87e237369..001a1179a 100644 --- a/indra/newview/llpanelgroupnotices.cpp +++ b/indra/newview/llpanelgroupnotices.cpp @@ -477,7 +477,10 @@ void LLPanelGroupNotices::processNotices(LLMessageSystem* msg) row["columns"][2]["value"] = name; std::string buffer; - timeToFormattedString(t, gSavedSettings.getString("ShortDateFormat"), buffer); + std::string format(gSavedSettings.getString("ShortDateFormat")); + if (gSavedSettings.getBOOL("LiruGroupNoticeTimes")) + format += " " + gSavedSettings.getString("ShortTimeFormat"); + timeToFormattedString(t, format, buffer); row["columns"][3]["column"] = "date"; row["columns"][3]["value"] = buffer;