标签:ali serial datetime bsp oca 序列化 ons set 时间差
反序列化后有时间差,把时区设置为当前时区就可以了
JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings() { DateTimeZoneHandling = DateTimeZoneHandling.Local }; Object obj = JsonConvert.DeserializeObject<Object >(jsonStr, jsonSerializerSettings);
标签:ali serial datetime bsp oca 序列化 ons set 时间差
原文地址:https://www.cnblogs.com/andysu/p/10043250.html