Commits

Anonymous committed bb20ba7

STORM-1130: Top Scripts: Date/time sorting is broken (sorts lexically)

Use LLScrollListCtrl's intrinsic support for date-typed columns.

Comments (0)

Files changed (1)

indra/newview/llfloatertopobjects.cpp

 		columns[3]["value"] = llformat("<%0.1f,%0.1f,%0.1f>", location_x, location_y, location_z);
 		columns[3]["font"] = "SANSSERIF";
 		columns[4]["column"] = "time";
-		columns[4]["value"] = formatted_time((time_t)time_stamp);
+		columns[4]["type"] = "date";
+		columns[4]["value"] = LLDate((time_t)time_stamp);
 		columns[4]["font"] = "SANSSERIF";
 
 		if (mCurrentMode == STAT_REPORT_TOP_SCRIPTS