路书上在线的人过滤掉比赛中的用户,获取服务器UTC时间转换成当地时间
This commit is contained in:
1 parent
dcc65cdd86
commit
6ad01c50df
2 files changed
+11
-5
No files matched your search
@@ -126,8 +126,7 @@ namespace Assets.Scripts.Apis
|
||||
public async Task<DateTime> GetNow()
|
||||
{
|
||||
var result = await GetAsync("NoAuth/GetNow");
|
||||
|
||||
return DateTime.Parse(System.Text.Encoding.UTF8.GetString(result));
|
||||
return DateTime.Parse(System.Text.Encoding.UTF8.GetString(result)).ToLocalTime();//将服务器UTC时间转换成当地时区的时间
|
||||
}
|
||||
|
||||
public async Task<JsonResult<object>> Register(string Phone, string Pwd, string Captcha)
|
||||
|
||||
Reference in new issue
Block a user