From 84f7274d0b0e9bd9f5443c22f806fff672e66a0f Mon Sep 17 00:00:00 2001 From: Kevin Whitman Date: Tue, 19 Mar 2013 15:40:14 -0400 Subject: [PATCH 1/3] BannedUntil on TempBanUser takes a unix timestamp now. --- AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs b/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs index dc59519..2b66e78 100644 --- a/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs +++ b/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs @@ -1161,7 +1161,7 @@ private OSDMap TempBanUser(OSDMap map) OSDMap resp = new OSDMap(); resp["Finished"] = OSD.FromBoolean(true); UUID agentID = map["UserID"].AsUUID(); - DateTime until = map["BannedUntil"].AsDate(); + DateTime until = Util.ToDateTime(map["BannedUntil"].AsInteger()); //BannedUntil is a unixtime stamp of the day the user should be banned till doBan(agentID, until); return resp; From 10b8cef3aae836c2def93989186e78fd2108f026 Mon Sep 17 00:00:00 2001 From: Kevin Whitman Date: Tue, 19 Mar 2013 15:42:07 -0400 Subject: [PATCH 2/3] updated comment on DateTime until line. --- AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs b/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs index 2b66e78..5ee3a72 100644 --- a/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs +++ b/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs @@ -1161,7 +1161,7 @@ private OSDMap TempBanUser(OSDMap map) OSDMap resp = new OSDMap(); resp["Finished"] = OSD.FromBoolean(true); UUID agentID = map["UserID"].AsUUID(); - DateTime until = Util.ToDateTime(map["BannedUntil"].AsInteger()); //BannedUntil is a unixtime stamp of the day the user should be banned till + DateTime until = Util.ToDateTime(map["BannedUntil"].AsInteger()); //BannedUntil is a unixtime stamp of the date and time the user should be banned till doBan(agentID, until); return resp; From 7dec5117a84fc1b0a1adb67cf84141ce3e1fa1ee Mon Sep 17 00:00:00 2001 From: Kevin Whitman Date: Tue, 19 Mar 2013 15:43:29 -0400 Subject: [PATCH 3/3] changed "unixtime stamp" to "unix timestamp" --- AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs b/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs index 5ee3a72..3ab946a 100644 --- a/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs +++ b/AuroraService/addon-modules/AuroraWebUI/Modules/WebUIHandler.cs @@ -1161,7 +1161,7 @@ private OSDMap TempBanUser(OSDMap map) OSDMap resp = new OSDMap(); resp["Finished"] = OSD.FromBoolean(true); UUID agentID = map["UserID"].AsUUID(); - DateTime until = Util.ToDateTime(map["BannedUntil"].AsInteger()); //BannedUntil is a unixtime stamp of the date and time the user should be banned till + DateTime until = Util.ToDateTime(map["BannedUntil"].AsInteger()); //BannedUntil is a unix timestamp of the date and time the user should be banned till doBan(agentID, until); return resp;