diff options
| author | andreykproductengine <akleshchev@productengine.com> | 2016-05-13 19:42:27 +0300 | 
|---|---|---|
| committer | andreykproductengine <akleshchev@productengine.com> | 2016-05-13 19:42:27 +0300 | 
| commit | b756b47d08d028a40d0a49b11755d31f47efe46d (patch) | |
| tree | 4e4537c58774527b6eb3fbaeeaf12652a2d90767 /indra | |
| parent | 8243301b3ff6c90db6d1fb53baf5050666d75d9a (diff) | |
MAINT-6383 SLT timestamp in "About second life" floater
Diffstat (limited to 'indra')
| -rwxr-xr-x | indra/newview/llappviewer.cpp | 6 | ||||
| -rwxr-xr-x | indra/newview/llstartup.cpp | 8 | ||||
| -rwxr-xr-x | indra/newview/skins/default/xui/en/strings.xml | 1 | 
3 files changed, 12 insertions, 3 deletions
| diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 45306dcff4..b6ba200d0d 100755 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3440,6 +3440,12 @@ std::string LLAppViewer::getViewerInfoString() const  	{  		support << '\n' << LLTrans::getString("AboutTraffic", args);  	} + +	// SLT timestamp +	LLSD substitution; +	substitution["datetime"] = (S32)time(NULL);//(S32)time_corrected(); +	support << "\n" << LLTrans::getString("AboutTime", substitution); +  	return support.str();  } diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 88fbd233b8..723b4992bb 100755 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -687,6 +687,11 @@ bool idle_startup()  			gRememberPassword = gSavedSettings.getBOOL("RememberPassword");  			show_connect_box = TRUE;  		} + +		//setup map of datetime strings to codes and slt & local time offset from utc +		// *TODO: Does this need to be here? +		LLStringOps::setupDatetimeInfo(false); +  		// Go to the next startup state  		LLStartUp::setStartupState( STATE_BROWSER_INIT );  		return FALSE; @@ -1139,9 +1144,6 @@ bool idle_startup()  						LLNotificationsUtil::add("ErrorMessage", args, LLSD(), login_alert_done);  					}  				} -				//setup map of datetime strings to codes and slt & local time offset from utc -				// *TODO: Does this need to be here? -				LLStringOps::setupDatetimeInfo (false);  				transition_back_to_login_panel(emsg.str());  				show_connect_box = true;  			} diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index ff98d2f109..1e498024f1 100755 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -54,6 +54,7 @@ LLCEFLib/CEF Version: [LLCEFLIB_VERSION]  Voice Server Version: [VOICE_VERSION]  	</string>  	<string name="AboutTraffic">Packets Lost: [PACKETS_LOST,number,0]/[PACKETS_IN,number,0] ([PACKETS_PCT,number,1]%)</string> +	<string name="AboutTime">[month, datetime, slt] [day, datetime, slt] [year, datetime, slt] [hour, datetime, slt]:[min, datetime, slt]:[second,datetime,slt]</string>  	<string name="ErrorFetchingServerReleaseNotesURL">Error fetching server release notes URL.</string>  	<!--  progress --> | 
