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.
This commit is contained in:
Inusaito Sayori
2013-08-24 21:57:42 -04:00
parent c9482ecac5
commit a2b0731dd0
2 changed files with 16 additions and 2 deletions

View File

@@ -674,10 +674,21 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>LiruGroupNoticeTimes</key>
<map>
<key>Comment</key>
<string>Append timestamp to date in the lists of past group notices</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>0</boolean>
</map>
<key>LiruItalicizeActions</key>
<map>
<key>Comment</key>
<string>When enabled, /me chat will be italicized.</string>
<string>When enabled, /me chat will be italicized.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>

View File

@@ -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;