From 8186bf25253924e80c640ba03432d3b6211a4d41 Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 26 Dec 2010 07:29:23 +0100 Subject: Remove some code that was meant to fool the viewer into thinking SLT. It never worked and it turned out the issues were really in the backend. --- .../Shared/Api/Implementation/LSL_Api.cs | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index f06fd24..613d704 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -3283,26 +3283,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api msg.imSessionID = new Guid(friendTransactionID.ToString()); // This is the item we're mucking with here // m_log.Debug("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message); // m_log.Debug("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString()); - DateTime dt = DateTime.UtcNow; - - // Ticks from UtcNow, but make it look like local. Evil, huh? - dt = DateTime.SpecifyKind(dt, DateTimeKind.Local); - - try - { - // Convert that to the PST timezone - TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("America/Los_Angeles"); - dt = TimeZoneInfo.ConvertTime(dt, timeZoneInfo); - } - catch - { - // No logging here, as it could be VERY spammy - } - - // And make it look local again to fool the unix time util - dt = DateTime.SpecifyKind(dt, DateTimeKind.Utc); - - msg.timestamp = (uint)Util.ToUnixTime(dt); +// DateTime dt = DateTime.UtcNow; +// +// // Ticks from UtcNow, but make it look like local. Evil, huh? +// dt = DateTime.SpecifyKind(dt, DateTimeKind.Local); +// +// try +// { +// // Convert that to the PST timezone +// TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("America/Los_Angeles"); +// dt = TimeZoneInfo.ConvertTime(dt, timeZoneInfo); +// } +// catch +// { +// // No logging here, as it could be VERY spammy +// } +// +// // And make it look local again to fool the unix time util +// dt = DateTime.SpecifyKind(dt, DateTimeKind.Utc); + + msg.timestamp = (uint)Util.UnixTimeSinceEpoch(); //if (client != null) //{ -- cgit v1.1