From 24ca32d8a89c45a26bf4fed0f4c684315b7ec340 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 5 Oct 2015 10:43:45 +0100 Subject: [PATCH] send DisplayNames dates in UTC and not region local time. send a next update date that can be parsed and make it also in future so name edition is blocked since we don't suport them. (singu fails to display date, and seems to fail converting utc to local time --- .../Handlers/GetDisplayNames/GetDisplayNamesHandler.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenSim/Capabilities/Handlers/GetDisplayNames/GetDisplayNamesHandler.cs b/OpenSim/Capabilities/Handlers/GetDisplayNames/GetDisplayNamesHandler.cs index 9031a47658..f7f9da9aec 100644 --- a/OpenSim/Capabilities/Handlers/GetDisplayNames/GetDisplayNamesHandler.cs +++ b/OpenSim/Capabilities/Handlers/GetDisplayNames/GetDisplayNamesHandler.cs @@ -92,8 +92,11 @@ namespace OpenSim.Capabilities.Handlers { string[] parts = name.Split(new char[] {' '}); OSDMap osdname = new OSDMap(); - osdname["display_name_next_update"] = OSD.FromDate(DateTime.MinValue); - osdname["display_name_expires"] = OSD.FromDate(DateTime.Now.AddMonths(1)); + // a date that is valid +// osdname["display_name_next_update"] = OSD.FromDate(new DateTime(1970,1,1)); + // but send one that blocks edition, since we actually don't suport this + osdname["display_name_next_update"] = OSD.FromDate(DateTime.UtcNow.AddDays(8)); + osdname["display_name_expires"] = OSD.FromDate(DateTime.UtcNow.AddMonths(1)); osdname["display_name"] = OSD.FromString(name); osdname["legacy_first_name"] = parts[0]; osdname["legacy_last_name"] = parts[1];