summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2016-05-16 17:50:09 +0300
committerandreykproductengine <akleshchev@productengine.com>2016-05-16 17:50:09 +0300
commite3afb1fdbadd3d6cdae7c261e7a975f3bf9faa89 (patch)
tree3458bc55d5caded5c27283302f9d2869db0f2051
parentb756b47d08d028a40d0a49b11755d31f47efe46d (diff)
MAINT-5935 server timestamp
-rwxr-xr-xindra/newview/llstartup.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index 723b4992bb..a2c8e7772e 100755
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -3312,6 +3312,13 @@ bool process_login_success_response()
{
time_t now = time(NULL);
gUTCOffset = (server_utc_time - now);
+
+ // Print server timestamp
+ LLSD substitution;
+ substitution["datetime"] = (S32)server_utc_time;
+ std::string timeStr = "[month, datetime, slt] [day, datetime, slt] [year, datetime, slt] [hour, datetime, slt]:[min, datetime, slt]:[second, datetime, slt]";
+ LLStringUtil::format(timeStr, substitution);
+ LL_INFOS("AppInit") << "Server SLT timestamp: " << timeStr << ". Server-viewer time offset before correction: " << gUTCOffset << "s" << LL_ENDL;
}
}