mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user