diff --git a/pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/config/JacksonConfig.java b/pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/config/JacksonConfig.java index 323109bc1..7394e33a7 100644 --- a/pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/config/JacksonConfig.java +++ b/pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/config/JacksonConfig.java @@ -30,7 +30,7 @@ public class JacksonConfig { public Jackson2ObjectMapperBuilderCustomizer customizer() { return builder -> { builder.locale(Locale.CHINA); - builder.timeZone(TimeZone.getTimeZone(ZoneId.systemDefault())); + builder.timeZone(TimeZone.getTimeZone("Asia/Shanghai")); builder.simpleDateFormat(DatePattern.NORM_DATETIME_PATTERN); builder.modules(new PigxJavaTimeModule()); };