Newtonsoft.Json 时区差解决方法 在使用Newtonsoft.Json时会遇到这样的问题,数据库存的值跟接收到反序列的值差了8个小时。这时,只要在反序列化时设置一下就可以了 1234JsonConvert.DeserializeObject<T>(jsonStr, new JsonSerializerSettings{ DateTimeZoneHandling = DateTimeZoneHandling.Local}); Newtonsoft.Json #时区 #Newtonsoft.Json 自建私有云存储 上一篇 Exceptionless 开源日志框架 下一篇