From 89c2c8e7ed4ce21e25e9fab7eeebd833b9c82910 Mon Sep 17 00:00:00 2001 From: lidongy <1879087903@qq.com> Date: Sat, 9 May 2020 11:59:01 +0800 Subject: [PATCH] 111 --- .../src/com/fr/third/socketio/protocol/JacksonJsonSupport.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fine-socketio/src/com/fr/third/socketio/protocol/JacksonJsonSupport.java b/fine-socketio/src/com/fr/third/socketio/protocol/JacksonJsonSupport.java index 9f607705f..fa2779be3 100644 --- a/fine-socketio/src/com/fr/third/socketio/protocol/JacksonJsonSupport.java +++ b/fine-socketio/src/com/fr/third/socketio/protocol/JacksonJsonSupport.java @@ -326,6 +326,7 @@ public class JacksonJsonSupport implements JsonSupport { objectMapper.configure(SerializationFeature.WRITE_BIGDECIMAL_AS_PLAIN, true); objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); + //时区设置,防止含有Data类型变量时序列化后,前台显示的data内时间不准确 objectMapper.setTimeZone(TimeZone.getDefault()); }