解决utc时间问题

This commit is contained in:
suntao committed 2021-06-22 13:50:08 +08:00
1 parent 2f8318b24e
commit 858b76d4d2
2 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -163,7 +163,9 @@ namespace Assets.Scripts.Apis
{
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
return JsonConvert.DeserializeObject<T>(result);
return JsonConvert.DeserializeObject<T>(result, new JsonSerializerSettings {
DateTimeZoneHandling = DateTimeZoneHandling.Local
});
}
//protected T Post<T>(string url, object data)