[MAINT-3424] - Display dates in SLT, rather than UTC

- Attempted fix, I'm close but didn't want to outright remove everything, so for now it's commented in.
Baker Linden 2014-05-09 15:41:35 -07:00
parent 37bfd025ae
commit 4fb9f50897
1 changed files with 8 additions and 7 deletions

View File

@ -3039,17 +3039,18 @@ void LLPanelGroupBanListSubTab::populateBanList()
ban_entry.columns.add().column("name").font.name("SANSSERIF_SMALL").style("NORMAL");
// Baker TODO: MAINT-
// Check out utc_to_pacific_time()
std::string ban_date_str = bd.mBanDate.toHTTPDateString("%Y/%m/%d");
time_t utc_time;
utc_time = time_corrected();
LLSD substitution;
substitution["datetime"] = (S32) utc_time;
LLStringUtil::format (ban_date_str, substitution);
// time_t utc_time;
// utc_time = time_corrected();
// LLSD substitution;
// substitution["datetime"] = (S32) utc_time;
// LLStringUtil::format (ban_date_str, substitution);
LL_INFOS("BAKER") << "[BAKER] BAN_DATE: " << bd.mBanDate.toHTTPDateString("%Y/%m/%d") << LL_ENDL;
LL_INFOS("BAKER") << "[BAKER] BAN_DATE_MODIFIED: " << ban_date_str << LL_ENDL;
//LL_INFOS("BAKER") << "[BAKER] BAN_DATE: " << bd.mBanDate.toHTTPDateString("%Y/%m/%d") << LL_ENDL;
//LL_INFOS("BAKER") << "[BAKER] BAN_DATE_MODIFIED: " << ban_date_str << LL_ENDL;
//ban_entry.columns.add().column("ban_date").value(ban_date_str.font.name("SANSSERIF_SMALL").style("NORMAL");
ban_entry.columns.add().column("ban_date").value(bd.mBanDate.toHTTPDateString("%Y/%m/%d")).font.name("SANSSERIF_SMALL").style("NORMAL");