From 1f52508d75fdaf099b1b98ebcd1ebe2be3281208 Mon Sep 17 00:00:00 2001 From: Kadah_Coba Date: Thu, 4 Feb 2016 21:02:54 -0800 Subject: [PATCH] FIRE-17764: Add timestamps to preprocessor compile info --- indra/newview/fslslpreproc.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/indra/newview/fslslpreproc.cpp b/indra/newview/fslslpreproc.cpp index a066180cc4..f58c508c36 100644 --- a/indra/newview/fslslpreproc.cpp +++ b/indra/newview/fslslpreproc.cpp @@ -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)