From dfd5e675c022ebb35e95b4a3d55c4c2ee94d0d6a Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 6 Jul 2008 18:39:37 +0000 Subject: Mantis#1678. Thank you kindly, Vytek for a patch that: Changes ...TimeOfDay.Milliseconds to ...TimeOfDay.TotalMilliseconds for llGetTimeOfDay() in both LSL_Api.cs and LSL_BuiltIn_Commands.cs --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 26fe27b..2525de0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -1394,7 +1394,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public double llGetTimeOfDay() { m_host.AddScriptLPS(1); - return (double) (((DateTime.Now.TimeOfDay.Milliseconds / 1000) % (3600*4))*World.TimeDilation); + return (double) (((DateTime.Now.TimeOfDay.TotalMilliseconds / 1000) % (3600*4))*World.TimeDilation); } public double llGetWallclock() -- cgit v1.1