Fix XmlRpcAdmin admin_exists_user call so that it actually returns the last user login time rather than serializing the DateTime directly which generates a set of unexpected fields.

lastlogin return is in unix timestamp format.
user_profiles
Justin Clark-Casey (justincc) 2013-04-04 01:06:57 +01:00
parent f281a994e8
commit f064075a85
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
GridUserInfo userInfo = m_application.SceneManager.CurrentOrFirstScene.GridUserService.GetGridUserInfo(account.PrincipalID.ToString());
if (userInfo != null)
responseData["lastlogin"] = userInfo.Login;
responseData["lastlogin"] = Util.ToUnixTime(userInfo.Login);
else
responseData["lastlogin"] = 0;