FIRE-17764: Add timestamps to preprocessor compile info

master
Kadah_Coba 2016-02-04 21:02:54 -08:00
parent 9330e986fe
commit 1f52508d75
1 changed files with 12 additions and 0 deletions

View File

@ -144,6 +144,18 @@ std::string FSLSLPreprocessor::encode(const std::string& script)
//otext += "\n//^ = determine what featureset is supported";
otext += llformat("\n//program_version %s", LLAppViewer::instance()->getWindowTitle().c_str());
time_t utc_time = time_corrected();
std::string timeStr ="["+LLTrans::getString ("TimeMonth")+"]/["
+LLTrans::getString ("TimeDay")+"]/["
+LLTrans::getString ("TimeYear")+"] ["
+LLTrans::getString ("TimeHour")+"]:["
+LLTrans::getString ("TimeMin")+"]:["
+LLTrans::getString("TimeSec")+"]";
LLSD substitution;
substitution["datetime"] = (S32) utc_time;
LLStringUtil::format (timeStr, substitution);
otext += "\n//last_compiled " + timeStr;
otext += "\n";
if (mono)